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