Uses
| Uses | Description |
|---|---|
| wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This method has been deprecated. Use wp_list_sort() instead.
Helper function to compare two objects by priority, ensuring sort stability via instance_number.
(WP_Customize_Panel|WP_Customize_Section|WP_Customize_Control) (Required) Object A.
(WP_Customize_Panel|WP_Customize_Section|WP_Customize_Control) (Required) Object B.
(int)
File: wp-includes/class-wp-customize-manager.php
protected function _cmp_priority( $a, $b ) {
_deprecated_function( __METHOD__, '4.7.0', 'wp_list_sort' );
if ( $a->priority === $b->priority ) {
return $a->instance_number - $b->instance_number;
} else {
return $a->priority - $b->priority;
}
} | Version | Description |
|---|---|
| 4.7.0 | Use wp_list_sort() |
| 3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/_cmp_priority