WordPress.org

Make WordPress Core

Changeset 17481


Ignore:
Timestamp:
02/22/11 10:12:38 (3 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r17475 r17481  
    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.