Changeset 31388
- Timestamp:
- 02/09/2015 07:26:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r31204 r31388 1275 1275 1276 1276 $id = get_the_ID(); 1277 1278 if ( false === $zero ) $zero = __( 'No Comments' ); 1279 if ( false === $one ) $one = __( '1 Comment' ); 1280 if ( false === $more ) $more = __( '% Comments' ); 1281 if ( false === $none ) $none = __( 'Comments Off' ); 1282 1277 $span = '<span class="screen-reader-text">'; 1278 $title = get_the_title(); 1279 $span_close = '</span>'; 1280 1283 1281 $number = get_comments_number( $id ); 1282 1283 if ( false === $zero ) $zero = sprintf( __( 'No Comments%1$s on %2$s%3$s' ), $span, $title, $span_close ); 1284 if ( false === $one ) $one = sprintf( __( '1 Comment%1$s on %2$s%3$s' ), $span, $title, $span_close ); 1285 if ( false === $more ) $more = sprintf( __( '%4$d Comments%1$s on %2$s%3$s' ), $span, $title, $span_close, $number ); 1286 if ( false === $none ) $none = sprintf( __( 'Comments Off%1$s on %2$s%3$s' ), $span, $title, $span_close ); 1284 1287 1285 1288 if ( 0 == $number && !comments_open() && !pings_open() ) { … … 1312 1315 echo ' class="'.$css_class.'" '; 1313 1316 } 1314 $title = the_title_attribute( array('echo' => 0 ) );1315 1317 1316 1318 $attributes = ''; … … 1324 1326 echo apply_filters( 'comments_popup_link_attributes', $attributes ); 1325 1327 1326 echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">';1328 echo '>'; 1327 1329 comments_number( $zero, $one, $more ); 1328 1330 echo '</a>';
Note: See TracChangeset
for help on using the changeset viewer.