WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13082 closed defect (bug) (fixed)

Wrong variable for page_links_text in ms-sites and ms-users

Reported by: ocean90 Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Multisite Keywords: has-patch
Focuses: Cc:

Description

<?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.

Attachments (1)

13082.patch (1.3 KB) - added by ocean90 5 years ago.

Download all attachments as: .zip

Change History (2)

@ocean905 years ago

comment:1 @ocean905 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.