From b27d14ccf3ad0b79048fb91c5268c59e69a5e324 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 27 Sep 2015 22:45:25 +0000 Subject: [PATCH] Docs: Adjust the `themes_api()` DocBlock description to clarify the "second" available hook, `themes_api`, and add new information for the "third" hook, `themes_api_result`. See #34036. Built from https://develop.svn.wordpress.org/trunk@34648 git-svn-id: http://core.svn.wordpress.org/trunk@34612 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/theme.php | 7 ++++++- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 7c2fbd0a39..c522e323fe 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -307,7 +307,12 @@ function get_theme_feature_list( $api = true ) { * as the second parameter. The hook for {@see 'themes_api_args'} must ensure that * an object is returned. * - * The second filter, {@see 'themes_api'}, is the result that would be returned. + * The second filter, {@see 'themes_api'}, allows a plugin to override the WordPress.org + * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'hot_categories', + * an object MUST be passed. If `$action` is 'hot_tags`, an array should be passed. + * + * Finally, the third filter, {@see 'themes_api_result'}, makes it possible to filter the + * response object or array, depending on the `$action` type. * * Supported arguments per action: * diff --git a/wp-includes/version.php b/wp-includes/version.php index 07b4f9bc08..9dc6e9ec4b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34647'; +$wp_version = '4.4-alpha-34648'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.