Changeset 8072
- Timestamp:
- 02/26/07 08:25:06 (1 year ago)
- Files:
-
- wp-polls/trunk/polls/polls.php (modified) (3 diffs)
- wp-polls/trunk/readme.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-polls/trunk/polls/polls.php
r8038 r8072 565 565 add_filter('the_content', 'place_pollsarchive', '7'); 566 566 function place_pollsarchive($content){ 567 $content = preg_replace( "/\[page_polls\]/ise", "polls_archive()", $content);567 $content = preg_replace("/\[page_polls\]/ise", "polls_archive()", $content); 568 568 return $content; 569 569 } … … 574 574 function place_poll($content){ 575 575 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); 577 577 } 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); 579 579 } 580 580 return $content; … … 1179 1179 if(empty($first_poll)) { 1180 1180 // 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);"); 1182 1182 if($insert_pollq) { 1183 1183 // Insert Poll Answers (5 Records) wp-polls/trunk/readme.html
r7967 r8072 302 302 <li>NEW: Default Poll's Result Template Will Now Show Number Of Votes Beside The Percentage</li> 303 303 <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> 305 305 </ul> 306 306 </li>
