Make WordPress Core


Ignore:
Timestamp:
01/12/2010 03:41:10 PM (14 years ago)
Author:
ryan
Message:

Allow per_page settings for custom post type edit screens. see #9674

File:
1 edited

Legend:

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

    r12706 r12707  
    852852    }
    853853
     854    if ( 'post' != $post_type )
     855        $per_page = 'edit_' . $post_type . '_per_page';
     856    else
     857        $per_page = 'edit_per_page';
    854858    $posts_per_page = (int) get_user_option( 'edit_per_page' );
    855859    if ( empty( $posts_per_page ) || $posts_per_page < 1 )
Note: See TracChangeset for help on using the changeset viewer.