WordPress.org

Make WordPress Core

Changeset 17482


Ignore:
Timestamp:
02/22/2011 10:13:03 AM (7 years ago)
Author:
nacin
Message:

Avoid printf entirely. props SergeyBiryukov, fixes #16611 for 3.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-admin/includes/class-wp-list-table.php

    r17476 r17482  
    421421            echo '<strong>';
    422422
    423         $link = "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>%s</span></a>";
    424 
    425         printf( $link, number_format_i18n( get_comments_number() ) );
     423        echo "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>" . number_format_i18n( get_comments_number() ) . "</span></a>";
    426424
    427425        if ( $pending_comments )
Note: See TracChangeset for help on using the changeset viewer.