Changeset 8072

Show
Ignore:
Timestamp:
02/26/07 08:25:06 (1 year ago)
Author:
GamerZ
Message:

Minor Update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-polls/trunk/polls/polls.php

    r8038 r8072  
    565565add_filter('the_content', 'place_pollsarchive', '7'); 
    566566function place_pollsarchive($content){ 
    567       $content = preg_replace( "/\[page_polls\]/ise", "polls_archive()", $content);  
     567      $content = preg_replace("/\[page_polls\]/ise", "polls_archive()", $content);  
    568568      return $content; 
    569569} 
     
    574574function place_poll($content){ 
    575575      if(!is_feed()) { 
    576             $content = preg_replace( "/\[poll=(\d+)\]/ise", "display_poll('\\1')", $content); 
     576            $content = preg_replace("/\[poll=(\d+)\]/ise", "display_poll('\\1')", $content); 
    577577      } else { 
    578             $content = preg_replace( "/\[poll=(\d+)\]/i", __('Note: There is a poll within this post, please visit the site to participate in this post\'s poll.', 'wp-polls'), $content); 
     578            $content = preg_replace("/\[poll=(\d+)\]/i", __('Note: There is a poll within this post, please visit the site to participate in this post\'s poll.', 'wp-polls'), $content); 
    579579      } 
    580580    return $content; 
     
    11791179      if(empty($first_poll)) { 
    11801180            // Insert Poll Question (1 Record) 
    1181             $insert_pollq = $wpdb->query("INSERT INTO $wpdb->pollsq VALUES (1, '".__('How Is My Site?', 'wp-polls')."', '".current_time('timestamp')."', 0, 1, '');"); 
     1181            $insert_pollq = $wpdb->query("INSERT INTO $wpdb->pollsq VALUES (1, '".__('How Is My Site?', 'wp-polls')."', '".current_time('timestamp')."', 0, 1, '', 0, 0);"); 
    11821182            if($insert_pollq) { 
    11831183                  // Insert Poll Answers  (5 Records) 
  • wp-polls/trunk/readme.html

    r7967 r8072  
    302302                                    <li>NEW: Default Poll's Result Template Will Now Show Number Of Votes Beside The Percentage</li> 
    303303                                    <li>NEW: Term "Total Votes" Changed To "Total Voters". <a href="http://www.lesterchan.net/wordpress/2007/02/09/total-voters-and-total-votes/">Refer To There</a></li> 
    304                                     <li>FIXED: Poll Within A Post Will Not Appear In Feed</li> 
     304                                    <li>NEW: Removed Polls From Feed If The Poll Is Embedded Into The Post Using [poll=ID]</li> 
    305305                              </ul> 
    306306                        </li>