WP_Theme::sort_by_name( array $themes )
Sorts themes by name.
Parameters
- $themes
-
(Required) Array of themes to sort (passed by reference).
Source
File: wp-includes/class-wp-theme.php
public static function sort_by_name( &$themes ) {
if ( 0 === strpos( get_user_locale(), 'en_' ) ) {
uasort( $themes, array( 'WP_Theme', '_name_sort' ) );
} else {
uasort( $themes, array( 'WP_Theme', '_name_sort_i18n' ) );
}
}
Changelog
Version | Description |
---|---|
WP-3.4.0 | Introduced. |