#54683 closed defect (bug) (fixed)
Allow the Customize admin bar node to show on the front-end when using a block theme if any plugins use the Customizer.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | 5.9 |
Component: | Toolbar | Keywords: | has-patch has-screenshots |
Focuses: | Cc: |
Description
In 5.9, when a block theme is being used, the Appearance > Customize
menu is not present unless a plugin uses the Customizer.
The Customize
admin bar node should be shown be shown on the front-end if any plugins are using the Customizer, even of the current theme is a block theme.
Note: since not that many plugins use the Customizer, I don't think it's essential that this get fixed before 5.9 is released...though, I certainly wouldn't object if the release leads want to include this in 5.9 :-)
Attachments (5)
Change History (12)
This ticket was mentioned in Slack in #core by pbiron. View the logs.
3 years ago
#3
@
3 years ago
Thanks @pbiron it looks like a fair change to the current implementation.
Even is there is not so much plugins using this in the repository, I do think a lot of developers may use customize_register
in their own self-made plugins, so it's probably worth to consider this use case.
#4
@
3 years ago
- Component changed from Customize to Toolbar
- Keywords has-screenshots added
I had customize_register
in a custom plugin to create each of the screenshots.
If anyone else wants to test it, you can use this code:
add_action( 'customize_register', '__return_true' );
#5
@
3 years ago
Test Report
Env
- WordPress: trunk
- Chrome 96.0.4664.110
- Windows 10
- Theme: Twenty Twenty-Two
- Plugins: Simple Customizer
Steps to test
- Install and activate a plugin that uses the Customizer.
- Navigate to the site's home page.
- The "Customize" admin bar item should not be displayed.
- Apply patch 54683.diff.
- Refresh the home page.
- The "Customize" admin bar item should be displayed.
Results
- Before 54683.diff: No "Customize" admin bar item.
- After 54683.diff: The "Customize" admin bar item is shown.
- Patch works as expected. 👍
Moving for 5.9 consideration