Ticket #34035: 34035.6.patch
File 34035.6.patch, 2.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/plugin-install.php
20 20 * 21 21 * The second filter, {@see 'plugins_api'}, is the result that would be returned. 22 22 * 23 * Supported arguments per action: 24 * 25 * | Argument | query_plugins | plugin_information | hot_tags | hot_categories | 26 * | -------------------| ------------- | ------------------ | -------- | -------------- | 27 * | $slug | No | Yes | No | No | 28 * | $per_page | Yes | No | No | No | 29 * | $page | Yes | No | No | No | 30 * | $number | No | No | Yes | Yes | 31 * | $search | Yes | No | No | No | 32 * | $tag | Yes | No | No | No | 33 * | $author | Yes | No | No | No | 34 * | $user | Yes | No | No | No | 35 * | $browse | Yes | No | No | No | 36 * | $locale | Yes | Yes | No | No | 37 * | $installed_plugins | Yes | No | No | No | 38 * | $is_ssl | Yes | Yes | No | No | 39 * | $fields | Yes | Yes | No | No | 40 * 23 41 * @since 2.7.0 24 42 * 25 43 * @param string $action API action to perform: 'query_plugins', 'plugin_information', … … 70 88 * @type bool $contributors Whether to return the list of contributors. Default false. 71 89 * } 72 90 * } 73 * @return object| WP_Error Response objecton success, WP_Error on failure. See the91 * @return object|array|WP_Error Response object or array on success, WP_Error on failure. See the 74 92 * {@link https://developer.wordpress.org/reference/functions/plugins_api/ function reference article} 75 * for more information on the make-up of possible return objects depending on the value of `$action`.93 * for more information on the make-up of possible return values depending on the value of `$action`. 76 94 */ 77 95 function plugins_api( $action, $args = array() ) { 78 96