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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-03-09 22:14:09 +00:00
parent 0acdb66f83
commit d66daa8a98
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}