|
@@ 119-130 (lines=12) @@
|
| 116 |
|
if ( $post_id ) { |
| 117 |
|
$comments_count = wp_count_comments( $post_id ); |
| 118 |
|
$draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); |
| 119 |
|
if ( $comments_count->moderated > 0 ) { |
| 120 |
|
/* translators: 1: comments count 2: post title */ |
| 121 |
|
$title = sprintf( __( 'Comments (%1$s) on “%2$s”' ), |
| 122 |
|
number_format_i18n( $comments_count->moderated ), |
| 123 |
|
$draft_or_post_title |
| 124 |
|
); |
| 125 |
|
} else { |
| 126 |
|
/* translators: %s: post title */ |
| 127 |
|
$title = sprintf( __( 'Comments on “%s”' ), |
| 128 |
|
$draft_or_post_title |
| 129 |
|
); |
| 130 |
|
} |
| 131 |
|
} else { |
| 132 |
|
$comments_count = wp_count_comments(); |
| 133 |
|
if ( $comments_count->moderated > 0 ) { |
|
@@ 133-140 (lines=8) @@
|
| 130 |
|
} |
| 131 |
|
} else { |
| 132 |
|
$comments_count = wp_count_comments(); |
| 133 |
|
if ( $comments_count->moderated > 0 ) { |
| 134 |
|
/* translators: %s: comments count */ |
| 135 |
|
$title = sprintf( __( 'Comments (%s)' ), |
| 136 |
|
number_format_i18n( $comments_count->moderated ) |
| 137 |
|
); |
| 138 |
|
} else { |
| 139 |
|
$title = __( 'Comments' ); |
| 140 |
|
} |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
add_screen_option( 'per_page' ); |