wp/wp-includes/theme-compat/comments.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
--- a/wp/wp-includes/theme-compat/comments.php	Mon Jun 08 16:11:51 2015 +0000
+++ b/wp/wp-includes/theme-compat/comments.php	Tue Jun 09 03:35:32 2015 +0200
@@ -23,8 +23,18 @@
 <!-- You can start editing here. -->
 
 <?php if ( have_comments() ) : ?>
-	<h3 id="comments"><?php	printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
-									number_format_i18n( get_comments_number() ), '&#8220;' . get_the_title() . '&#8221;' ); ?></h3>
+	<h3 id="comments">
+		<?php
+			if ( 1 == get_comments_number() ) {
+				/* translators: %s: post title */
+				printf( __( 'One Response to %s' ),  '&#8220;' . get_the_title() . '&#8221;' );
+			} else {
+				/* translators: 1: number of comments, 2: post title */
+				printf( _n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
+					number_format_i18n( get_comments_number() ),  '&#8220;' . get_the_title() . '&#8221;' );
+			}
+		?>
+	</h3>
 
 	<div class="navigation">
 		<div class="alignleft"><?php previous_comments_link() ?></div>
@@ -91,7 +101,10 @@
 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
 <?php comment_id_fields(); ?>
 </p>
-<?php do_action('comment_form', $post->ID); ?>
+<?php
+/** This filter is documented in wp-includes/comment-template.php */
+do_action( 'comment_form', $post->ID );
+?>
 
 </form>