[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 19:31:29 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 Otto42):
Alternatively, alternatively, wrap the cache calls in function_exists
calls. Then, for the purposes of this, it can be simply uncached.
I'm not seeing a lot of benefits to the caching here anyway, since really
it's just checking for if a couple files exist.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56975#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list