mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Bring in the widgets component of MP6. See #25858.
* A cleaner UI, with a simpler design for available and inactive widgets, and more emphasis on your sidebars. * Available widgets and sidebars expand to two columns at larger screen sizes making it easier to manage sites with lots of sidebars. * New dropzone indicator for empty sidebars. Props shaunandrews, joen, iammattthomas. git-svn-id: https://develop.svn.wordpress.org/trunk@26140 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -67,8 +67,6 @@ function _sort_name_callback( $a, $b ) {
|
||||
function wp_list_widget_controls( $sidebar ) {
|
||||
add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' );
|
||||
|
||||
echo "<div id='$sidebar' class='widgets-sortables'>\n";
|
||||
|
||||
$description = wp_sidebar_description( $sidebar );
|
||||
|
||||
if ( !empty( $description ) ) {
|
||||
@@ -77,6 +75,7 @@ function wp_list_widget_controls( $sidebar ) {
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
echo "<div id='$sidebar' class='widgets-sortables'>\n";
|
||||
dynamic_sidebar( $sidebar );
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user