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
This commit is contained in:
Sergey Biryukov 2018-02-02 09:38:30 +00:00
parent f45e696e21
commit abdea23275
2 changed files with 12 additions and 9 deletions

View File

@ -17,14 +17,17 @@
* @global array $wp_theme_directories * @global array $wp_theme_directories
* @staticvar array $_themes * @staticvar array $_themes
* *
* @param array $args The search arguments. Optional. * @param array $args {
* - errors mixed True to return themes with errors, false to return themes without errors, null * Optional. The search arguments.
* to return all themes. Defaults to false. *
* - allowed mixed (Multisite) True to return only allowed themes for a site. False to return only * @type mixed $errors True to return themes with errors, false to return themes without errors, null to return all themes.
* disallowed themes for a site. 'site' to return only site-allowed themes. 'network' * Defaults to false.
* to return only network-allowed themes. Null to return all themes. Defaults to null. * @type mixed $allowed (Multisite) True to return only allowed themes for a site. False to return only disallowed themes for a site.
* - blog_id int (Multisite) The blog ID used to calculate which themes are allowed. Defaults to 0, * 'site' to return only site-allowed themes. 'network' to return only network-allowed themes.
* synonymous for the current blog. * 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. * @return array Array of WP_Theme objects.
*/ */
function wp_get_themes( $args = array() ) { function wp_get_themes( $args = array() ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.