From abdea23275dc0f7e17468014708cf833f0f683e6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 2 Feb 2018 09:38:30 +0000 Subject: [PATCH] Docs: Convert `$args` array description for `wp_get_themes()` to a hash notation. Props milana_cap. Fixes #43213. Built from https://develop.svn.wordpress.org/trunk@42640 git-svn-id: http://core.svn.wordpress.org/trunk@42469 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 19 +++++++++++-------- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 406fa4a310..11d488e030 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -17,14 +17,17 @@ * @global array $wp_theme_directories * @staticvar array $_themes * - * @param array $args The search arguments. Optional. - * - errors mixed True to return themes with errors, false to return themes without errors, null - * to return all themes. Defaults to false. - * - allowed mixed (Multisite) True to return only allowed themes for a site. False to return only - * disallowed themes for a site. 'site' to return only site-allowed themes. 'network' - * to return only network-allowed themes. Null to return all themes. Defaults to null. - * - blog_id int (Multisite) The blog ID used to calculate which themes are allowed. Defaults to 0, - * synonymous for the current blog. + * @param array $args { + * Optional. The search arguments. + * + * @type mixed $errors True to return themes with errors, false to return themes without errors, null to return all themes. + * Defaults to false. + * @type mixed $allowed (Multisite) True to return only allowed themes for a site. False to return only disallowed themes for a site. + * 'site' to return only site-allowed themes. 'network' to return only network-allowed themes. + * Null to return all themes. Defaults to null. + * @type int $blog_id (Multisite) The blog ID used to calculate which themes are allowed. + * Defaults to 0, synonymous for the current blog. + * } * @return array Array of WP_Theme objects. */ function wp_get_themes( $args = array() ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 711a537f63..0bb7c1b967 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42639'; +$wp_version = '5.0-alpha-42640'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.