mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Docs: Document more parameters and properties using typed array notation.
See #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@42875 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -569,8 +569,8 @@ function themes_api( $action, $args = array() ) {
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @param array $themes Optional. Array of WP_Theme objects to prepare.
|
||||
* Defaults to all allowed themes.
|
||||
* @param WP_Theme[] $themes Optional. Array of theme objects to prepare.
|
||||
* Defaults to all allowed themes.
|
||||
*
|
||||
* @return array An associative array of theme data, sorted by name.
|
||||
*/
|
||||
@@ -585,9 +585,9 @@ function wp_prepare_themes_for_js( $themes = null ) {
|
||||
*
|
||||
* @since 4.2.0
|
||||
*
|
||||
* @param array $prepared_themes An associative array of theme data. Default empty array.
|
||||
* @param null|array $themes An array of WP_Theme objects to prepare, if any.
|
||||
* @param string $current_theme The current theme slug.
|
||||
* @param array $prepared_themes An associative array of theme data. Default empty array.
|
||||
* @param WP_Theme[]|null $themes An array of theme objects to prepare, if any.
|
||||
* @param string $current_theme The current theme slug.
|
||||
*/
|
||||
$prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user