Make WordPress Core


Ignore:
Timestamp:
04/11/2010 05:26:03 PM (15 years ago)
Author:
nacin
Message:

Don't use require_once for get_template_part(). fixes #12958.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r14070 r14075  
    104104 * then no template will be included.
    105105 *
     106 * The template is included using require, not require_once, so you may include the
     107 * same template part multiple times.
     108 *
    106109 * For the parameter, if the file is called "{slug}-special.php" then specify
    107110 * "special".
     
    123126    $templates[] = "{$slug}.php";
    124127
    125     locate_template($templates, true);
     128    locate_template($templates, true, false);
    126129}
    127130
Note: See TracChangeset for help on using the changeset viewer.