From 80e4265277549972780737489225d5989370a9a3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 2 Oct 2015 04:51:39 +0000 Subject: [PATCH] Docs: Also clarify the expected element types depending on the value of `$action` in the hook doc for the `plugins_api` filter. See [34763] for context. See #34035. git-svn-id: https://develop.svn.wordpress.org/trunk@34764 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/plugin-install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index 9446637482..36fade2108 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -129,8 +129,8 @@ function plugins_api( $action, $args = array() ) { * * Passing a non-false value will effectively short-circuit the WordPress.org API request. * - * If `$action` is 'query_plugins', 'plugin_information', or 'hot_categories', an object MUST - * be passed. If `$action` is 'hot_tags`, an array should be passed. + * If `$action` is 'query_plugins' or 'plugin_information', an object MUST be passed. + * If `$action` is 'hot_tags` or 'hot_categories', an array should be passed. * * @since 2.7.0 *