Make WordPress Core

Changeset 13664


Ignore:
Timestamp:
03/11/2010 06:02:40 PM (15 years ago)
Author:
nacin
Message:

get_blog_count() returns a number, not an object. Also, i18n fixes -- add plural string, and translator context. see #12531 for get_blog_count() discussion. see #12409 for ms-sites cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-sites.php

    r13661 r13664  
    424424                $status_class = ' class="current"';
    425425
    426         $status_links[] = "<li><a href='ms-sites.php?blogstatus=all'$status_class>" . sprintf( __( 'All <span class="count">(%s)</span>' ), number_format_i18n( $count->all ) ) . '</a>';
     426        $status_links[] = "<li><a href='ms-sites.php?blogstatus=all'$status_class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'sites' ), number_format_i18n( $count ) ) . '</a>';
    427427
    428428        foreach ( $status_list as $status => $col ) {
Note: See TracChangeset for help on using the changeset viewer.