From 8fa143dc2ec390c5b633cad0e24e8f1f2ad79047 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 27 Sep 2015 22:46:37 +0000 Subject: [PATCH] Docs: Fix two typos in the DocBlock description for `themes_api()`: * The fourth `$action` type is 'feature_list' * The first `$action` type in the data table should be 'query_themes' See #34036. git-svn-id: https://develop.svn.wordpress.org/trunk@34649 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index c522e323fe..9189077555 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -308,7 +308,7 @@ function get_theme_feature_list( $api = true ) { * an object is 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', + * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'feature_list', * 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 @@ -316,7 +316,7 @@ function get_theme_feature_list( $api = true ) { * * Supported arguments per action: * - * | Argument Name | 'query_plugins' | 'theme_information' | 'hot_tags' | 'feature_list' | + * | Argument Name | 'query_themes' | 'theme_information' | 'hot_tags' | 'feature_list' | * | -------------------| :-------------: | :-----------------: | :--------: | :--------------: | * | `$slug` | No | Yes | No | No | * | `$per_page` | Yes | No | No | No |