Opened 2 years ago
Closed 17 months ago
#59626 closed defect (bug) (fixed)
admin-bar-css not following codex
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 6.6 | Priority: | normal |
| Severity: | normal | Version: | 6.3.3 |
| Component: | Themes | Keywords: | |
| Focuses: | Cc: |
Description (last modified by )
Hi!
I have noticed that when the path to the admin-bar-css is changed via define('TEMPLATEPATH') / define('STYLESHEETPATH') hook(s) it is not followed when generating .../wp-includes/css/admin-bar.min.css which looks for the file at the original location, ignoring any change(s).
Regards,
@brianbrown
Change History (4)
#2
@
2 years ago
- Description modified (diff)
A search found translations of the old "Edit wp-config.php" Codex article, which mentioned these two constants among Additional Defined Constants "that can be defined, but probably shouldn't be."
I cannot edit the Thai version, but I probably could remove those two lines from other translations.
- an incomplete Slovak translation
- French
- Croatian
- Italian
- Brazilian Portuguese
- Russian
- Chinese
Also, the stylesheet directory function page has a downvoted user note that suggested using the STYLESHEETPATH constant.
Hi there, welcome to WordPress Trac! Thanks for the ticket.
Could you share the Codex article you are referring to?
Just to clarify, the
TEMPLATEPATHandSTYLESHEETPATHconstants are only used for locating files in the current theme, they indeed do not affect any other files likewp-includes/css/admin-bar.min.css.These constants will be deprecated in WP 6.4 in favor of the
template_directoryandstylesheet_directoryfilters, see [56635] / #18298.