[wp-trac] [WordPress Trac] #56901: WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles is incorrectly cached.
WordPress Trac
noreply at wordpress.org
Thu Oct 27 15:30:12 UTC 2022
#56901: WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles is incorrectly
cached.
-------------------------------------------------+-------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests has-
testing-info
Comment:
== Testing Instructions
=== Steps to Reproduce
* Use Twenty Twenty Two (TT2) theme
* Use WordPress 6.0.3
* Log into the admin area
* Go to Appearance > Editor
* Open the Global Styles UI
* Select "Browse Styles"
* Select the red styling
* Select "Save" to save the new global styles
* Go back to the Dashboard
* Go to Tools > Export
* Click on "Download Export File" using "All content"
* Using another local site, upgrade to WordPress 6.1-RC3
* Log into the admin area
* Go to Tools > Import
* Select "Install Now" for the "WordPress" importer
* Select "Run Importer"
* Select the XML file using "Choose File"
* Click on the "Upload file and import" button
* View site in the frontend
The 🐞 bug occurs when viewing on the frontend as the site does not use
the red styling.
=== Expected behavior:
When viewing the site in the frontend, the site should use the red
styling, i.e meaning the imported global styles are used.
=== Expected Results
When testing a patch to validate it works as expected:
- ✅ What should happen when running the test
When reproducing a bug:
- ❌ Error condition occurs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56901#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list