Default plugins per page to 999

git-svn-id: http://svn.automattic.com/wordpress/trunk@11314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-13 04:26:40 +00:00
parent 5f17b95d0f
commit bcc453a997
2 changed files with 7 additions and 3 deletions

View File

@ -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";

View File

@ -296,7 +296,7 @@ $total_this_page = "total_{$status}_plugins";
$total_this_page = $$total_this_page;
$plugins_per_page = get_user_option('plugins_per_page');
if ( empty($plugins_per_page) )
$plugins_per_page = 20;
$plugins_per_page = 999;
$plugins_per_page = apply_filters('plugins_per_page', $plugins_per_page);
$start = ($page - 1) * $plugins_per_page;