From 33c9d2f4d406206d7075432d75ce90d08a0bb457 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 20 Nov 2008 21:22:24 +0000 Subject: [PATCH] Show 24 results per page for plugin searches. fixes #8290 git-svn-id: https://develop.svn.wordpress.org/trunk@9821 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/plugin-install.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index b633a660c2..bc22aa838e 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -31,6 +31,9 @@ function plugins_api($action, $args = null) { if( is_array($args) ) $args = (object)$args; + if ( !isset($args->per_page) ) + $args->per_page = 24; + $args = apply_filters('plugins_api_args', $args, $action); //NOTE: Ensure that an object is returned via this filter. $res = apply_filters('plugins_api', false, $action, $args); //NOTE: Allows a plugin to completely override the builtin WordPress.org API.