WordPress.org

Make WordPress Core

Changeset 10749


Ignore:
Timestamp:
03/09/09 22:14:09 (5 years ago)
Author:
westi
Message:

Allow a plugin to control how many posts are displayed on edit pages. Fixes #9307 props aaroncampbell

File:
1 edited

Legend:

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

    r10730 r10749  
    816816    } 
    817817 
    818     wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=15&order=$order&orderby=$orderby"); 
     818    $posts_per_page = apply_filters('edit_posts_per_page', 15); 
     819 
     820    wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby"); 
    819821 
    820822    return array($post_stati, $avail_post_stati); 
Note: See TracChangeset for help on using the changeset viewer.