[wp-trac] [WordPress Trac] #18151: Option to return string false for locate_template()

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 18 12:22:41 UTC 2011


#18151: Option to return string false for locate_template()
-------------------------+------------------------------
 Reporter:  griffinjt    |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Template     |     Version:  3.2.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------

Comment (by kawauso):

 >Because locate_template() returns the filename string, it gets outputted
 at the very end of the page, right before the closing </body> tag.

 More than likely this is because you're including the $default_template
 value in your `exit()`. I can't find any output of the filename in either
 load_template() or locate_template().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18151#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list