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:
parent
2e36a3bfac
commit
33c9d2f4d4
@ -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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user