Ticket #6391: 6391.diff
File 6391.diff, 5.2 KB (added by , 16 years ago) |
---|
-
wp-content/themes/classic/comments-popup.php
3 3 * @package WordPress 4 4 * @subpackage Classic_Theme 5 5 */ 6 7 /* Don't remove these lines. */ 8 add_filter('comment_text', 'popuplinks'); 9 while( have_posts()) : the_post(); 10 ?> 11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 12 7 <html xmlns="http://www.w3.org/1999/xhtml"> 13 8 <head> 14 9 <title><?php echo get_option('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title> … … 24 19 25 20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 26 21 22 <?php 23 /* Don't remove these lines. */ 24 add_filter('comment_text', 'popuplinks'); 25 if ( have_posts() ) : 26 while( have_posts()) : the_post(); 27 ?> 28 27 29 <h2 id="comments"><?php _e("Comments"); ?></h2> 28 30 29 31 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> … … 67 69 <p> 68 70 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 69 71 <label for="author"><?php _e("Name"); ?></label> 70 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />71 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" />72 72 </p> 73 73 74 74 <p> … … 89 89 </p> 90 90 91 91 <p> 92 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 93 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> 92 94 <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" /> 93 95 </p> 94 96 <?php do_action('comment_form', $post->ID); ?> … … 102 104 <div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div> 103 105 104 106 <?php // if you delete this the sky will fall on your head 105 endwhile; 107 endwhile; //endwhile have_posts() 108 else: //have_posts() 106 109 ?> 110 <p>Sorry, no posts matched your criteria.</p> 111 <?php endif; ?> 107 112 108 113 <!-- // this is just the end of the motor - don't touch that line either :) --> 109 114 <?php //} ?> -
wp-content/themes/default/comments-popup.php
3 3 * @package WordPress 4 4 * @subpackage Default_Theme 5 5 */ 6 7 /* Don't remove these lines. */ 8 add_filter('comment_text', 'popuplinks'); 9 while ( have_posts()) : the_post(); 10 ?> 11 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 12 7 <html xmlns="http://www.w3.org/1999/xhtml"> 13 8 <head> 14 9 <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title> … … 24 19 25 20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 26 21 22 <?php 23 /* Don't remove these lines. */ 24 add_filter('comment_text', 'popuplinks'); 25 if ( have_posts() ) : 26 while ( have_posts() ) : the_post(); 27 ?> 27 28 <h2 id="comments">Comments</h2> 28 29 29 30 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> … … 67 68 <p> 68 69 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 69 70 <label for="author">Name</label> 70 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />71 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" />72 71 </p> 73 72 74 73 <p> … … 89 88 </p> 90 89 91 90 <p> 91 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 92 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> 92 93 <input name="submit" type="submit" tabindex="5" value="Say It!" /> 93 94 </p> 94 95 <?php do_action('comment_form', $post->ID); ?> … … 102 103 <div><strong><a href="javascript:window.close()">Close this window.</a></strong></div> 103 104 104 105 <?php // if you delete this the sky will fall on your head 105 endwhile; 106 endwhile; //endwhile have_posts() 107 else: //have_posts() 106 108 ?> 107 109 <p>Sorry, no posts matched your criteria.</p> 110 <?php endif; ?> 108 111 <!-- // this is just the end of the motor - don't touch that line either :) --> 109 112 <?php //} ?> 110 113 <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>