mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Widget Customizer: Use ?wp_customize=on.
Let _wp_customize_include() handle customizer initialisation. Sets also the priority for the Add Widget and Reorder buttons and removes debug cruft. props westonruter. fixes #27291. git-svn-id: https://develop.svn.wordpress.org/trunk@27524 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -321,7 +321,7 @@ class WP_Customize_Widgets {
|
||||
array(
|
||||
'section' => $section_id,
|
||||
'sidebar_id' => $sidebar_id,
|
||||
//'priority' => 99, // so it appears at the end
|
||||
'priority' => count( $sidebar_widget_ids ), // place Add Widget & Reorder buttons at end
|
||||
)
|
||||
);
|
||||
$new_setting_ids[] = $setting_id;
|
||||
|
||||
Reference in New Issue
Block a user