Make WordPress Core

Ticket #13996: add_context_to_comment_status_labels.patch

File add_context_to_comment_status_labels.patch, 802 bytes (added by SergeyBiryukov, 14 years ago)
  • edit-comments.php

     
    239239        if ( !empty( $_GET['s'] ) )
    240240                $link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link );
    241241        */
    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,
    244248                number_format_i18n( $num_comments->$status )
    245249        ) . '</a>';
    246250}