[wp-trac] [WordPress Trac] #18151: Option to return string false for locate_template()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 18 04:23:36 UTC 2011
#18151: Option to return string false for locate_template()
-------------------------+------------------------------
Reporter: griffinjt | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.2.1
Severity: normal | Resolution: duplicate
Keywords: needs-patch |
-------------------------+------------------------------
Comment (by griffinjt):
I believe that ticket is related but in a different manner. All I would
propose is adding another parameter such as $return and have by default
$return = true, like below:
{{{
function locate_template($template_names, $load = false, $require_once =
true, $return = true ) {
}}}
If it is set to false, simply return nothing. That's what I am getting at.
:)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18151#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list