mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Default plugins per page to 999
git-svn-id: https://develop.svn.wordpress.org/trunk@11314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3637,8 +3637,12 @@ function screen_options($screen) {
|
||||
|
||||
$option = str_replace('-', '_', "${screen}_per_page");
|
||||
$per_page = get_user_option($option);
|
||||
if ( empty($per_page) )
|
||||
$per_page = 20;
|
||||
if ( empty($per_page) ) {
|
||||
if ( 'plugins' == $screen )
|
||||
$per_page = 999;
|
||||
else
|
||||
$per_page = 20;
|
||||
}
|
||||
|
||||
$return = '<h5>' . __('Options') . "</h5>\n";
|
||||
$return .= "<div class='screen-options'>\n";
|
||||
|
||||
Reference in New Issue
Block a user