mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'] );
|
||||
|
||||
Reference in New Issue
Block a user