Make WordPress Core

Ticket #6391: 6391.diff

File 6391.diff, 5.2 KB (added by DD32, 16 years ago)
  • wp-content/themes/classic/comments-popup.php

     
    33 * @package WordPress
    44 * @subpackage Classic_Theme
    55 */
    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">
    127<html xmlns="http://www.w3.org/1999/xhtml">
    138<head>
    149     <title><?php echo get_option('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title>
     
    2419
    2520<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
    2621
     22<?php
     23/* Don't remove these lines. */
     24add_filter('comment_text', 'popuplinks');
     25if ( have_posts() ) :
     26while( have_posts()) : the_post();
     27?>
     28
    2729<h2 id="comments"><?php _e("Comments"); ?></h2>
    2830
    2931<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>
     
    6769        <p>
    6870          <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
    6971           <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"]); ?>" />
    7272        </p>
    7373
    7474        <p>
     
    8989        </p>
    9090
    9191        <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"]); ?>" />
    9294          <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" />
    9395        </p>
    9496        <?php do_action('comment_form', $post->ID); ?>
     
    102104<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
    103105
    104106<?php // if you delete this the sky will fall on your head
    105 endwhile;
     107endwhile; //endwhile have_posts()
     108else: //have_posts()
    106109?>
     110<p>Sorry, no posts matched your criteria.</p>
     111<?php endif; ?>
    107112
    108113<!-- // this is just the end of the motor - don't touch that line either :) -->
    109114<?php //} ?>
  • wp-content/themes/default/comments-popup.php

     
    33 * @package WordPress
    44 * @subpackage Default_Theme
    55 */
    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">
    127<html xmlns="http://www.w3.org/1999/xhtml">
    138<head>
    149     <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
     
    2419
    2520<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
    2621
     22<?php
     23/* Don't remove these lines. */
     24add_filter('comment_text', 'popuplinks');
     25if ( have_posts() ) :
     26while ( have_posts() ) : the_post();
     27?>
    2728<h2 id="comments">Comments</h2>
    2829
    2930<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>
     
    6768        <p>
    6869          <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
    6970           <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"]); ?>" />
    7271        </p>
    7372
    7473        <p>
     
    8988        </p>
    9089
    9190        <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"]); ?>" />
    9293          <input name="submit" type="submit" tabindex="5" value="Say It!" />
    9394        </p>
    9495        <?php do_action('comment_form', $post->ID); ?>
     
    102103<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
    103104
    104105<?php // if you delete this the sky will fall on your head
    105 endwhile;
     106endwhile; //endwhile have_posts()
     107else: //have_posts()
    106108?>
    107 
     109<p>Sorry, no posts matched your criteria.</p>
     110<?php endif; ?>
    108111<!-- // this is just the end of the motor - don't touch that line either :) -->
    109112<?php //} ?>
    110113<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>