[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:29:45 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 coffee2code):

 I agree with @kawauso.  You're telling `exit()` to output the template
 name by having it as an argument.  Just use `exit();` without arguments.

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


More information about the wp-trac mailing list