Show 24 results per page for plugin searches. fixes #8290

git-svn-id: http://svn.automattic.com/wordpress/trunk@9821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-20 21:22:24 +00:00
parent 543be53ab0
commit afa3f9b11b
1 changed files with 3 additions and 0 deletions

View File

@ -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.