[wp-trac] [WordPress Trac] #60826: Fix incorrect use of add_theme_support( 'editor-style(s)' )
WordPress Trac
noreply at wordpress.org
Tue Oct 22 00:57:47 UTC 2024
#60826: Fix incorrect use of add_theme_support( 'editor-style(s)' )
-------------------------------------------------+-------------------------
Reporter: Soean | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Themes | Version:
Severity: minor | Resolution:
Keywords: reporter-feedback dev-feedback | Focuses: docs
needs-patch |
-------------------------------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:15 peterwilsoncc]:
> Is it worht aliasing them in the add|remove|has functions in case theme
authors have copied the wrong example
Frankly don't think aliasing them is a good idea. If somebody copied the
wrong name from somewhere, their code won't work. So they probably
debugged it and fixed it.
If they didn't fix it, their code is still not working. Adding an alias
will fix this, but then the code that hasn't been working will suddenly
start to work. That may be unexpected and seems may cause problems in
production/for the users of such themes.
Seems fixing the docs will be best for everybody, and won't cause any
problems :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60826#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list