From bcc453a9973dda82e51ac871eb9c3f80104fa498 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 May 2009 04:26:40 +0000 Subject: [PATCH] Default plugins per page to 999 git-svn-id: http://svn.automattic.com/wordpress/trunk@11314 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 8 ++++++-- wp-admin/plugins.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 144be100f6..041be1dd13 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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 = '
' . __('Options') . "
\n"; $return .= "
\n"; diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 291ac41e49..0958309e44 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -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;