mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-19 09:05:22 +01:00
Widgets: Add click-to-add widgets to the bottom (not top) of the target sidebar.
fixes #25821. Built from https://develop.svn.wordpress.org/trunk@26696 git-svn-id: http://core.svn.wordpress.org/trunk@26586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8882b3511
commit
d0e4753aef
@ -433,7 +433,7 @@ wpWidgets = {
|
|||||||
// Open the widgets container
|
// Open the widgets container
|
||||||
sidebar.closest( '.widgets-holder-wrap' ).removeClass('closed');
|
sidebar.closest( '.widgets-holder-wrap' ).removeClass('closed');
|
||||||
|
|
||||||
sidebar.find('.sidebar-description').after( widget );
|
sidebar.append( widget );
|
||||||
sidebar.sortable('refresh');
|
sidebar.sortable('refresh');
|
||||||
|
|
||||||
wpWidgets.save( widget, 0, 0, 1 );
|
wpWidgets.save( widget, 0, 0, 1 );
|
||||||
|
2
wp-admin/js/widgets.min.js
vendored
2
wp-admin/js/widgets.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user