wp-admin/includes/class-wp-plugins-list-table.php:412Callback to sort plugins by a given column.
$plugin_a$plugin_bint public function _order_callback( $plugin_a, $plugin_b ) { global $orderby, $order; $a = $plugin_a[ $orderby ]; $b = $plugin_b[ $orderby ]; if ( $a === $b ) { return 0; } if ( 'DESC' === $order ) { return strcasecmp( $b, $a ); } else { return strcasecmp( $a, $b ); } }Introduced in 3.1.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$plugin_a retyped from array to untyped.verified against source$plugin_b retyped from array to untyped.verified against sourcesrc/wp-admin/includes/class-wp-plugins-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.