Add per page option to Screen Options for comments, posts, pages, and media.

git-svn-id: https://develop.svn.wordpress.org/trunk@10847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-27 22:47:47 +00:00
parent d861062501
commit ea904a0ba0
7 changed files with 98 additions and 5 deletions

View File

@@ -182,7 +182,10 @@ unset($status_links);
</p>
<?php
$comments_per_page = apply_filters('comments_per_page', 20, $comment_status);
$comments_per_page = get_user_option('edit_comments_per_page');
if ( empty($comments_per_page) )
$comments_per_page = 20;
$comments_per_page = apply_filters('comments_per_page', $comments_per_page, $comment_status);
if ( isset( $_GET['apage'] ) )
$page = abs( (int) $_GET['apage'] );