[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 16:32:57 UTC 2022


#56901: WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles is incorrectly
cached.
-------------------------------------------------+-------------------------
 Reporter:  peterwilsoncc                        |       Owner:
                                                 |  davidbaumwald
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by davidbaumwald):

 * owner:  (none) => davidbaumwald
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54706" 54706]:
 {{{
 #!CommitTicketReference repository="" revision="54706"
 Themes: Ensure custom global styles are imported properly.

 This change removes caching of global styles for logged in users, allowing
 "wp_global_styles" custom post type to be imported completely, regardless
 of any previously cached data.  This change now relies on the lower-level
 native `WP_Query` cache invalidation methods for the global styles post
 type.

 Follow-up to [52275], [54186].

 Props anariel-design, bernhard-reiter, andrewserong, spacedmonkey,
 andraganescu, peterwilsoncc, oandregal, hellofromTonya.
 Fixes #56901.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56901#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list