Allow a plugin to control how many posts are displayed on edit pages. Fixes #9307 props aaroncampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@10749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0e4478e6c7
commit
87a4d2f1cb
@ -815,7 +815,9 @@ function wp_edit_posts_query( $q = false ) {
|
||||
$orderby = 'date';
|
||||
}
|
||||
|
||||
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=15&order=$order&orderby=$orderby");
|
||||
$posts_per_page = apply_filters('edit_posts_per_page', 15);
|
||||
|
||||
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");
|
||||
|
||||
return array($post_stati, $avail_post_stati);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user