WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/21/2010 05:27:04 PM (9 years ago)
Author:
ryan
Message:

Make posts per page filters consistent and back compat. Props wpmuguru. fixes #14135 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r15445 r15450  
    896896    if ( empty( $posts_per_page ) || $posts_per_page < 1 )
    897897        $posts_per_page = 20;
     898
    898899    $posts_per_page = apply_filters( $per_page, $posts_per_page );
    899 
     900    $posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );
    900901
    901902    $query = compact('post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page');
Note: See TracChangeset for help on using the changeset viewer.