X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/76aea3697c6043c1613370f172395b4f65ee71f0..e9d988989fe37ab8c5f903e47fbe36e6e00dc51f:/wp-admin/includes/widgets.php
diff --git a/wp-admin/includes/widgets.php b/wp-admin/includes/widgets.php
index 52d1d7b1..a591c60d 100644
--- a/wp-admin/includes/widgets.php
+++ b/wp-admin/includes/widgets.php
@@ -1,289 +1,225 @@
-
-
- $args, 1 => $widget['params'][0] ) );
+ call_user_func_array( 'wp_widget_control', $args );
+ }
}
+/**
+ * Callback to sort array by a 'name' key.
+ *
+ * @since 3.1.0
+ * @access private
+ */
+function _sort_name_callback( $a, $b ) {
+ return strnatcasecmp( $a['name'], $b['name'] );
+}
-
+/**
+ * Show the widgets and their settings for a sidebar.
+ * Used in the the admin widget config screen.
+ *
+ * @since 2.5.0
+ *
+ * @param string $sidebar id slug of the sidebar
+ */
function wp_list_widget_controls( $sidebar ) {
add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' );
-?>
-