Ticket #27299: 27299.2.patch
File 27299.2.patch, 1.1 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/widgets.php
16 16 17 17 $sort = $wp_registered_widgets; 18 18 usort( $sort, '_sort_name_callback' ); 19 /** 20 * Filter the widgets order for the Widgets screen. 21 * 22 * @since 4.1 23 * 24 * @param array $sort the alphabetically ordered list of available widgets. 25 */ 26 $sort = apply_filters( 'available_widgets_order', $sort ); 27 19 28 $done = array(); 20 29 21 30 foreach ( $sort as $widget ) { -
wp-includes/class-wp-customize-widgets.php
861 861 862 862 $sort = $wp_registered_widgets; 863 863 usort( $sort, array( $this, '_sort_name_callback' ) ); 864 /** This filter is documented in wp-admin/includes/widgets.php */ 865 $sort = apply_filters( 'available_widgets_order', $sort ); 866 864 867 $done = array(); 865 868 866 869 foreach ( $sort as $widget ) {