Make WordPress Core

Changeset 9856


Ignore:
Timestamp:
11/24/2008 03:12:28 AM (18 years ago)
Author:
azaozz
Message:

Pass unformatted number to ngettext, props filosofo, fixes #8324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r9785 r9856  
    183183
    184184        // Posts
    185         $num = isset($num_posts->publish) ? number_format_i18n( $num_posts->publish ) : 0;
     185        $num = number_format_i18n( $num_posts->publish );
    186186        if ( current_user_can( 'edit_posts' ) )
    187187                $text = "<a href='edit.php'>$num</a>";
     
    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', intval($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
Note: See TracChangeset for help on using the changeset viewer.