Add wp_prepare_themes_for_js filter to wp_prepare_themes_for_js().

props kovshenin.
fixes #25948.

Built from https://develop.svn.wordpress.org/trunk@26625


git-svn-id: http://core.svn.wordpress.org/trunk@26515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-04 19:21:10 +00:00
parent b0e68361b7
commit bd17d08545
1 changed files with 10 additions and 1 deletions

View File

@ -424,5 +424,14 @@ function wp_prepare_themes_for_js( $themes = null ) {
);
}
return $prepared_themes;
/**
* Filter the themes prepared for JavaScript, for themes.php.
*
* Could be useful for changing the order, which is by name by default.
*
* @since 3.8.0
*
* @param array $prepared_themes Array of themes.
*/
return apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );
}