WP_Theme::_name_sort(WP_Theme$a, WP_Theme$b ): int
Since
3.4.0
Source
wp-includes/class-wp-theme.php:2149
Callback function for usort() to naturally sort themes by name.
Description
Accesses the Name header directly from the class for maximum speed.Would choke on HTML but we don't care enough to slow it down with strip_tags().
Parameters
$aWP_Theme
First theme.
$bWP_Theme
Second theme.
Return
int
Negative if $a falls lower in the natural order than $b. Zero if they fall equally. Greater than 0 if $a falls higher in the natural order than $b. Used with usort().
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/class-wp-theme.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.