#54460 closed defect (bug) (fixed)
Ensure links to the Customizer send users to an appropriate destination in 5.9
Reported by: | jameskoster | Owned by: | hellofromTonya |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch commit has-unit-tests has-testing-info |
Focuses: | ui, administration | Cc: |
Description
In 5.9, when a block theme is active, access to the Customizer is hidden by default. There are however a few remaining links to the Customizer throughout the wp-admin interface. In particular on the Themes page, and on the Dashboard.
It might be better to make the destination of these links conditional. IE if a classic theme is active, link to the Customizer (no change). If a block theme is active link to Appearance > Editor.
Attachments (3)
Change History (31)
#1
@
3 years ago
- Component changed from General to Customize
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 5.9
#3
@
3 years ago
Before this can be done, the solutions for the site icon and starter content needs to be completed:
#4
@
3 years ago
Regarding the "welcome to WordPress" box, it goes beyond just updating the links. This is a missed opportunity to establish the main concepts (blocks, patterns, styles), set the right expectations (early access?), and guide users better.
#5
@
3 years ago
Closed https://github.com/WordPress/gutenberg/issues/36578 in favour of this ticket. See there for some more commentary.
#7
@
3 years ago
Regarding the "welcome to WordPress" box, it goes beyond just updating the links. This is a missed opportunity to establish the main concepts (blocks, patterns, styles), set the right expectations (early access?), and guide users better.
I love that idea.
Does it needs it's own issue though?
This ticket was mentioned in Slack in #core-editor by noisysocks. View the logs.
3 years ago
This ticket was mentioned in Slack in #core-editor by noisysocks. View the logs.
3 years ago
This ticket was mentioned in PR #1933 on WordPress/wordpress-develop by anton-vlasenko.
3 years ago
#12
- Keywords has-patch added; needs-patch removed
In 5.9, when a block theme is active, access to the Customizer is hidden by default. There are however a few remaining links to the Customizer throughout the wp-admin interface. In particular on the Themes page, and on the Dashboard.
This PRs aims to change these links depending on the current theme. If the current theme is block-based, we send users to the Appearance -> Editor page
instead.
Trac ticket: https://core.trac.wordpress.org/ticket/54460
anton-vlasenko commented on PR #1933:
3 years ago
#14
I've added 2 new test block themes. I tried to modify the old ones and this caused unit tests to fail. They are not intended to be the block themes (despite their names).
#15
@
3 years ago
- Keywords commit added; needs-design removed
Thanks @antonvlasenko. Let's get this in for beta 1 and make any necessary tweaks as follow-up commits.
This ticket was mentioned in Slack in #core-themes by poena. View the logs.
3 years ago
3 years ago
#17
Sorry if I'm missing the point here, but aren't there still important applications of the customizer for block themes? The obviously one being that it allows users to add additional css without having to edit theme code? I don't know where I'd be without that ability, and I use a block theme.
3 years ago
#18
Sorry if I'm missing the point here, but aren't there still important applications of the customizer for block themes? The obvious one being that it allows users to add additional css without having to edit theme code? I don't know where I'd be without that ability, and I use a block theme.
#19
@
3 years ago
- Keywords has-unit-tests added
- Owner changed from antonvlasenko to hellofromTonya
- Status changed from assigned to reviewing
Self-assigning for testing, review, and, if all is good, commit.
hellofromtonya commented on PR #1933:
3 years ago
#20
@anton-vlasenko I refactored the tests to use data providers and named datasets as well as added additional test data for when a theme or file does not exist. Tests pass https://github.com/WordPress/wordpress-develop/pull/1933/commits/641751b5915da26eb3f014ad8f776442ba726cde.
The failed CI jobs are not related to this PR, but rather are due to changeset https://core.trac.wordpress.org/changeset/52272.
#21
@
3 years ago
- Keywords has-testing-info added
Test Report
Env:
- Browsers: Firefox, Chrome, Edge, and Safari
- WordPress: trunk with PR 1933 applied
- OS: macOS Big Sur
- localhost: wp-env
Steps
After applying the patch, do the following:
- Activate Twenty Twenty-One theme.
- Check the link in the "Customize" button links to
/wp-admin/customize.php?theme=twentytwentyone&return=/wp-admin/themes.php
. - Go to Dashboard > Home
- Check that the "Customize Your Site" button links to
/wp-admin/customize.php
and the "change your theme completely" links to/wp-admin/customize.php?autofocus[panel]=themes
. - Go back to Appearance > Themes.
- Activate Twenty Twenty-Two theme.
- Check the link in the "Customize" button links to
/wp-admin/site-editor.php
. - Go to Dashboard > Home.
- Check that the "Customize Your Site" button links to
/wp-admin/site-editor.php
and the "change your theme completely" links to/wp-admin/themes.php
. - Go back to Appearance > Themes.
- Activate Twenty Nineteen.
- Click on the Customize button to open Customizer.
- Click on "Change" in the "Active theme" area.
- Notice Twenty Twenty-Two is displayed there. Click on "Live Preview" button.
- Then click "Activate & Publish" button.
Test Results
- Testing Twenty Twenty-One:
- Customize button rendered as expected ✅
- Welcome Dashboard: both the button and link rendered as expected ✅
- Testing Twenty Twenty-Two:
- Customize button rendered as expected ✅
- Welcome Dashboard: both the button and link rendered as expected ✅
- Switching to Twenty Twenty-Two within Customizer: yes, switching works ✅
PR 1933 works as expected.
#22
@
3 years ago
@antonvlasenko @noisysocks Right now, it's possible to switch to a block theme from within Customizer.
How to switch to it?
- Activate a non-block theme like Twenty Nineteen.
- Click on Customize button to open Customizer.
- Click on "Change" in the "Active theme" area.
- Notice Twenty Twenty-Two is displayed there. Click on "Live Preview" button.
- Click "Activate & Publish" button.
Do you foresee any issues?
#23
@
3 years ago
@hellofromTonya
Thank you for the code review!
Do you foresee any issues?
I think that's a minor bug. As far as I understand, we strive to hide Customizer for non-block based themes.
I will try to fix it ASAP (in the scope of the existing PR).
#24
@
3 years ago
After talking with @antonvlasenko, the issue of activating a block theme within the Customizer needs thought and lots of testing. It's outside the scope of this ticket. Anton will open a new issue for it.
PR 1933 is approved and ready for commit. I'll prep the commit.
hellofromtonya commented on PR #1933:
3 years ago
#26
Committed via https://core.trac.wordpress.org/changeset/52279.
anton-vlasenko commented on PR #1933:
3 years ago
#27
Thank you, @hellofromtonya!
#28
@
3 years ago
it's possible to switch to a block theme from within Customizer.
I've created a new ticket to track this bug.
Props to @hellofromTonya.
Hi there, welcome back to WordPress Trac!
Thanks for the report, moving to the milestone for visibility.