- Timestamp:
- 10/02/2017 07:43:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r41168 r41683 247 247 248 248 foreach ( $stati as $status => $label ) { 249 $class = ( $status === $comment_status ) ? ' class="current"' : ''; 249 $current_link_attributes = ''; 250 251 if ( $status === $comment_status ) { 252 $current_link_attributes = ' class="current" aria-current="page"'; 253 } 250 254 251 255 if ( !isset( $num_comments->$status ) ) … … 259 263 $link = add_query_arg( 's', esc_attr( wp_unslash( $_REQUEST['s'] ) ), $link ); 260 264 */ 261 $status_links[ $status ] = "<a href='$link'$c lass>" . sprintf(265 $status_links[ $status ] = "<a href='$link'$current_link_attributes>" . sprintf( 262 266 translate_nooped_plural( $label, $num_comments->$status ), 263 267 sprintf( '<span class="%s-count">%s</span>',
Note: See TracChangeset
for help on using the changeset viewer.