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
This commit is contained in:
Ryan Boren 2008-11-20 21:22:24 +00:00
parent 2e36a3bfac
commit 33c9d2f4d4

View File

@ -31,6 +31,9 @@ function plugins_api($action, $args = null) {
if( is_array($args) ) if( is_array($args) )
$args = (object)$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. $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. $res = apply_filters('plugins_api', false, $action, $args); //NOTE: Allows a plugin to completely override the builtin WordPress.org API.