[wp-trac] [WordPress Trac] #58905: Ensure locate_template only loads theme files

WordPress Trac noreply at wordpress.org
Thu Aug 24 19:44:33 UTC 2023


#58905: Ensure locate_template only loads theme files
----------------------------------------------+---------------------
 Reporter:  jorbin                            |       Owner:  (none)
     Type:  defect (bug)                      |      Status:  new
 Priority:  normal                            |   Milestone:  6.4
Component:  Themes                            |     Version:
 Severity:  normal                            |  Resolution:
 Keywords:  has-patch early needs-unit-tests  |     Focuses:
----------------------------------------------+---------------------

Comment (by pypwalters):

 Option added that uses validate_file(). I removed the unit tests because
 the result was always coming up empty. I believe I am running into some
 complications because of the use of STYLESHEETPATH and TEMPLATEPATH in the
 locate_template function. Is it possible that these are not available to
 phpunit?

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


More information about the wp-trac mailing list