[wp-trac] [WordPress Trac] #13082: Wrong variable for page_links_text in ms-sites and ms-users

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 22 15:13:05 UTC 2010


#13082: Wrong variable for page_links_text in ms-sites and ms-users
--------------------------+-------------------------------------------------
 Reporter:  ocean90       |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Multisite     |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 {{{
 <?php $page_links_text = sprintf( '<span class="displaying-num">' . __(
 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
                 number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
                 number_format_i18n( min( $pagenum * $per_page, $num_pages)
 ),
                 number_format_i18n( $num_pages),
                 $page_links
 ); echo $page_links_text; ?>
 }}}

 Instead of $num_pages it should be $total.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13082>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list