WordPress.org

Make WordPress Core

Changeset 14185


Ignore:
Timestamp:
04/21/10 23:30:06 (5 years ago)
Author:
wpmuguru
Message:

fix page count calc for unattached media, props PeteMall, see #12448

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r14139 r14185  
    147147        $total_orphans = $wpdb->get_var( "SELECT FOUND_ROWS()" ); 
    148148        $page_links_total = ceil( $total_orphans / $media_per_page ); 
     149        $wp_query->found_posts = $total_orphans; 
     150        $wp_query->query_vars['posts_per_page'] = $media_per_page; 
    149151    } 
    150152 
Note: See TracChangeset for help on using the changeset viewer.