Ticket #26553: 26553.3.diff
| File 26553.3.diff, 1.8 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/comment-template.php
1274 1274 global $wpcommentspopupfile, $wpcommentsjavascript; 1275 1275 1276 1276 $id = get_the_ID(); 1277 $span = '<span class="screen-reader-text">';1278 1277 $title = get_the_title(); 1279 $span_close = '</span>';1280 1278 1281 1279 $number = get_comments_number( $id ); 1282 1280 1283 1281 if ( false === $zero ) { 1284 /* translators: 1: Opening span tag with a class, 2: post title, 3: closing span tag */ 1285 $zero = sprintf( __( 'No Comments%1$s on %2$s%3$s' ), $span, $title, $span_close ); 1282 $zero = sprintf( __( 'No Comments<span class="screen-reader-text"> on %s</span>' ), $title ); 1286 1283 } 1287 1284 if ( false === $one ) { 1288 /* translators: 1: Opening span tag with a class, 2: post title, 3: closing span tag */ 1289 $one = sprintf( __( '1 Comment%1$s on %2$s%3$s' ), $span, $title, $span_close ); 1285 $one = sprintf( __( '1 Comment<span class="screen-reader-text"> on %s</span>' ), $title ); 1290 1286 } 1291 1287 if ( false === $more ) { 1292 /* translators: 1: Opening span tag with a class, 2: post title, 3: closing span tag, 4: number of comments */ 1293 $more = sprintf( __( '%4$d Comments%1$s on %2$s%3$s' ), $span, $title, $span_close, $number ); 1288 $more = sprintf( __( '%2$d Comments<span class="screen-reader-text"> on %1$s</span>' ), $title, $number ); 1294 1289 } 1295 1290 if ( false === $none ) { 1296 /* translators: 1: Opening span tag with a class, 2: post title, 3: closing span tag */ 1297 $none = sprintf( __( 'Comments Off%1$s on %2$s%3$s' ), $span, $title, $span_close ); 1291 $none = sprintf( __( 'Comments Off<span class="screen-reader-text"> on %s</span>' ), $title ); 1298 1292 } 1299 1293 1300 1294 if ( 0 == $number && !comments_open() && !pings_open() ) {