[wp-trac] [WordPress Trac] #64317: Docs: Update the comment of the `wp_enqueue_classic_theme_styles()` function
WordPress Trac
noreply at wordpress.org
Sat Nov 29 04:39:32 UTC 2025
#64317: Docs: Update the comment of the `wp_enqueue_classic_theme_styles()`
function
--------------------------------------+--------------------------
Reporter: wildworks | Owner: westonruter
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 7.0
Component: Themes | Version: 6.4
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+--------------------------
Changes (by westonruter):
* owner: (none) => westonruter
* status: new => reviewing
* milestone: Awaiting Review => 7.0
Comment:
I think the description might be further improved.
In r54687 the function changed so that it only enqueued in non-block
themes. That is, it enqueued in classic and hybrid themes. Now, however,
it's enqueueing only in themes that lack a `theme.json`, which would be
exclusively classic non-hybrid themes. It uses `wp_theme_has_theme_json()`
which “Checks whether a theme or its parent has a theme.json file.” Since
the definition of "classic theme" often encompases hybrid themes, I think
this can be more explicit. So instead of:
> Loads classic theme styles on classic themes.
I think it should rather be:
> Loads classic theme styles in themes which lack a theme.json file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64317#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list