WordPress.org

Make WordPress Core

Ticket #12552: 12552.patch

File 12552.patch, 1.0 KB (added by Utkarsh, 8 years ago)

Needs Testing

  • wp-admin/edit.php

     
    353353</div>
    354354
    355355<?php if ( $page_links ) { ?>
    356 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
     356<div class="tablenav-pages"><?php
     357        $count_posts = $post_type_object->hierarchical ? $wp_query->post_count : $wp_query->found_posts;
     358        $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
    357359        number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
    358         number_format_i18n( min( $pagenum * $per_page, $wp_query->found_posts ) ),
    359         number_format_i18n( $wp_query->found_posts ),
     360        number_format_i18n( min( $pagenum * $per_page,  $count_posts) ),
     361        number_format_i18n( $count_posts ),
    360362        $page_links
    361 ); echo $page_links_text; ?></div>
     363); echo $page_links_text;?></div>
    362364<?php } ?>
    363365
    364366<div class="view-switch">