Ticket #13996: add_context_to_comment_status_labels.patch
File add_context_to_comment_status_labels.patch, 802 bytes (added by , 15 years ago) |
---|
-
edit-comments.php
239 239 if ( !empty( $_GET['s'] ) ) 240 240 $link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link ); 241 241 */ 242 $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf( 243 _n( $label[0], $label[1], $num_comments->$status ), 242 if ( isset( $label[2] ) ) 243 $translated_label = _nx( $label[0], $label[1], $num_comments->$status, $label[2] ); 244 else 245 $translated_label = _n( $label[0], $label[1], $num_comments->$status ); 246 $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf( 247 $translated_label, 244 248 number_format_i18n( $num_comments->$status ) 245 249 ) . '</a>'; 246 250 }