[wp-trac] [WordPress Trac] #59626: admin-bar-css not following codex
WordPress Trac
noreply at wordpress.org
Sat Oct 21 00:34:43 UTC 2023
#59626: admin-bar-css not following codex
--------------------------+------------------------------
Reporter: brianbrown | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 6.3.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Old description:
> 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
New description:
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
--
Comment (by sabernhardt):
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.
- [https://codex.wordpress.org/sk:Editing_wp-
config.php#Additional_Defined_Constants an incomplete Slovak translation]
- [https://codex.wordpress.org/fr:Modifier_wp-
config.php#Autres_Constantes_D.C3.A9finies French]
- [https://codex.wordpress.org/hr:Ure%C4%91ivanje_wp-
config.php#Dodatno_Definirane_Konstante Croatian]
- [https://codex.wordpress.org/it:Modificare_wp-
config.php#Additional_Defined_Constants Italian]
- [https://codex.wordpress.org/pt-br:Editando_wp-
config.php#Constantes_Definidas_Adicionais Brazilian Portuguese]
-
[https://codex.wordpress.org/%D0%A0%D0%B5%D0%B4%D0%B0%D0%BA%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0
%B5_wp-
config.php#.D0.94.D0.BE.D0.BF.D0.BE.D0.BB.D0.BD.D0.B8.D1.82.D0.B5.D0.BB.D1.8C.D0.BD.D0.BE_.D0.B7.D0.B0.D0.B4.D0.B0.D0.B2.D0.B0.D0.B5.D0.BC.D1.8B.D0.B5_.D0.BA.D0.BE.D0.BD.D1.81.D1.82.D0.B0.D0.BD.D1.82.D1.8B
Russian]
- [https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-
config.php#.E9.A2.9D.E5.A4.96.E7.9A.84.E5.AE.9A.E4.B9.89.E5.B8.B8.E9.87.8F
Chinese]
Also, the
[https://developer.wordpress.org/reference/functions/get_stylesheet_directory/
stylesheet directory function page] has a //downvoted// user note that
suggested using the `STYLESHEETPATH` constant.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59626#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list