[wp-trac] [WordPress Trac] #37471: Customizer: Widgets: If your theme only has one widget area, we should open it automatically
WordPress Trac
noreply at wordpress.org
Sun Mar 19 00:25:37 UTC 2017
#37471: Customizer: Widgets: If your theme only has one widget area, we should open
it automatically
-----------------------------------------+---------------------------------
Reporter: melchoyce | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7.4
Component: Customize | Version: 4.0
Severity: normal | Resolution:
Keywords: has-screenshots needs-patch | Focuses: ui, administration
-----------------------------------------+---------------------------------
Comment (by westonruter):
The `auto_expand_sole_section` param for `WP_Customize_Panel` is added in
https://github.com/xwp/wordpress-
develop/pull/194/commits/726214d11b9143c0b0d948dd18c73cf75551a004
What isn't working yet is what I described in [comment:13], where
autofocus isn't yet working with this auto-expansion behavior. Best way to
test this is to activate twentyfifteen and then go to `/wp-
admin/customize.php?autofocus[section]=sidebar-widgets-sidebar-1`. You'll
see the Widgets panel only expands. It might be due to all of the active
states being synced from the panel yet, and we should wait to autofocus
until they have all been set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37471#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list