[wp-trac] [WordPress Trac] #56975: Replace the internal `WP_Theme_JSON_Resolver::theme_has_support()` with a public function

WordPress Trac noreply at wordpress.org
Wed Jan 18 21:58:15 UTC 2023


#56975: Replace the internal `WP_Theme_JSON_Resolver::theme_has_support()` with a
public function
-------------------------------------------------+-------------------------
 Reporter:  oandregal                            |       Owner:
                                                 |  hellofromTonya
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.2
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  dev-feedback                                   |  performance
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 In [changeset:"55092" 55092]:
 {{{
 #!CommitTicketReference repository="" revision="55092"
 Themes: Revert caching from r55086.

 Calls to `wp-admin/load-styles.php` do not include the loading of
 `wp_cache_*()` functions. With [55086], this caused a fatal error:

 {{{
 Fatal error: Uncaught Error: Call to undefined function wp_cache_get() in
 /wp-includes/global-styles-and-settings.php on line 285
 }}}

 In some production and local environments running `trunk`, the admin area
 looked broken as the styling was not loaded as there were no HTTP
 requests.

 This commit reverts the caching from [55086] to restore sites running
 `trunk` until a solution is found.

 Follow-up to [55086].

 Props Otto42, dmsnell, costdev.
 See #56975.
 }}}

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


More information about the wp-trac mailing list