[wp-trac] [WordPress Trac] #18298: deprecate TEMPLATEPATH and STYLESHEETPATH

WordPress Trac noreply at wordpress.org
Thu Sep 21 01:25:54 UTC 2023


#18298: deprecate TEMPLATEPATH and STYLESHEETPATH
-------------------------------------------------+-------------------------
 Reporter:  aaroncampbell                        |       Owner:  flixos90
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  Themes                               |     Version:  3.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  template,
  note commit                                    |  performance
-------------------------------------------------+-------------------------

Comment (by flixos90):

 In [changeset:"56641" 56641]:
 {{{
 #!CommitTicketReference repository="" revision="56641"
 Themes: Fix fatal error in `load-styles.php`.

 Following [56635], a fatal error occurred in `load-styles.php` leading to
 admin styles not working, because of a `has_filter()` call being added to
 `get_stylesheet_director()` and `get_template_directory()`.

 This changeset adds `has_filter()` to `wp-admin/includes/noop.php` to
 prevent such errors. The lack of loading the function does not cause any
 unintended side effects itself.

 Props iandunn, adamsilverstein.
 Fixes #59417.
 See #18298.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/18298#comment:71>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list