Ticket #40969: 40969.2.diff
| File 40969.2.diff, 665 bytes (added by , 8 years ago) |
|---|
-
src/wp-includes/general-template.php
131 131 * 132 132 * @param string $slug The slug name for the generic template. 133 133 * @param string $name The name of the specialised template. 134 * @return string The template filename if one is located. 134 135 */ 135 136 function get_template_part( $slug, $name = null ) { 136 137 /** … … 154 155 155 156 $templates[] = "{$slug}.php"; 156 157 157 locate_template( $templates, true, false );158 return locate_template( $templates, true, false ); 158 159 } 159 160 160 161 /**