[wp-trac] [WordPress Trac] #64317: Docs: Update the comment of the `wp_enqueue_classic_theme_styles()` function
WordPress Trac
noreply at wordpress.org
Thu Nov 27 10:11:55 UTC 2025
#64317: Docs: Update the comment of the `wp_enqueue_classic_theme_styles()`
function
--------------------------+-----------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Keywords: good-first-bug
Focuses: |
--------------------------+-----------------------------
Related to #61892
The `wp_enqueue_classic_theme_styles()` function is executed on both the
editor and the front-end:
- [https://github.com/WordPress/wordpress-
develop/blob/6b7adc0159731f2dc23719d52b1add89d1cd1703/src/wp-includes
/default-filters.php#L598 Frontend]
- [https://github.com/WordPress/wordpress-
develop/blob/6b7adc0159731f2dc23719d52b1add89d1cd1703/src/wp-includes
/default-filters.php#L602 Editor]
Therefore, the following function comment is misleading:
"Loads classic theme styles on classic themes **in the frontend**."
We should remove the "in the frontend." fron the comment.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64317>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list