Make WordPress Core

Ticket #8325: 8325.diff

File 8325.diff, 777 bytes (added by Speedboxer, 18 years ago)

Use unformatted number in ngettext in Right Now dashboard widget

  • dashboard.php

     
    188188        else
    189189                $text = $num;
    190190        echo '<td class="first b b-posts">' . $text . '</td>';
    191         echo '<td class="t posts">' . __ngettext( 'Post', 'Posts', $num ) . '</td>';
     191        echo '<td class="t posts">' . __ngettext( 'Post', 'Posts', $num_posts->publish ) . '</td>';
    192192        /* TODO: Show status breakdown on hover
    193193        if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds.  Don't show if !current_user_can
    194194                $post_type_texts[] = '<a href="edit-pages.php">'.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';