Changeset 16313 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 11/11/2010 10:50:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r16312 r16313 261 261 } 262 262 263 uasort( $wp_plugins, create_function( '$a, $b', 'return strnatcasecmp( $a["Name"], $b["Name"] );' ));263 uasort( $wp_plugins, '_sort_uname_callback' ); 264 264 265 265 $cache_plugins[ $plugin_folder ] = $wp_plugins; … … 313 313 unset( $wp_plugins['index.php'] ); 314 314 315 uasort( $wp_plugins, create_function( '$a, $b', 'return strnatcasecmp( $a["Name"], $b["Name"] );' ));315 uasort( $wp_plugins, '_sort_uname_callback' ); 316 316 317 317 return $wp_plugins; 318 } 319 320 /** 321 * Callback to sort array by a 'Name' key. 322 * 323 * @since 3.1.0 324 * @access private 325 */ 326 function _sort_uname_callback( $a, $b ) { 327 return strnatcasecmp( $a['Name'], $b['Name'] ); 318 328 } 319 329 … … 354 364 } 355 365 356 uksort( $dropins, create_function( '$a, $b', 'return strnatcasecmp( $a, $b );' ));366 uksort( $dropins, 'strnatcasecmp' ); 357 367 358 368 return $dropins;
Note: See TracChangeset
for help on using the changeset viewer.