[wp-trac] [WordPress Trac] #57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`

WordPress Trac noreply at wordpress.org
Tue Jun 27 17:10:44 UTC 2023


#57629: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`
------------------------------------+---------------------------
 Reporter:  flixos90                |       Owner:  spacedmonkey
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  6.3
Component:  Themes                  |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56073" 56073]:
 {{{
 #!CommitTicketReference repository="" revision="56073"
 Themes: Use `get_theme_file_path()` in `wp_theme_has_theme_json()`.

 Ensure that all places where `theme.json` is included, use
 `get_theme_file_path` or `WP_Theme->get_file_path`, so that the path is
 run through `theme_file_path` filter. This change also means that the
 method `get_file_path_from_theme` can be deprecated, as it is no longer
 used in core.

 Props flixos90, spacedmonkey, costdev, johnbillion, oglekler,
 hellofromtonya, mukesh27, audrasjb, oandregal.
 Fixes #57629.
 }}}

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


More information about the wp-trac mailing list