Ticket #25487: 25487.patch
| File 25487.patch, 664 bytes (added by , 12 years ago) |
|---|
-
wp-includes/template.php
26 26 if ( empty( $templates ) ) 27 27 $templates = array("{$type}.php"); 28 28 29 return apply_filters( "{$type}_template", locate_template( $templates ) ); 29 $template = locate_template( $templates ); 30 /** 31 * Filter the template path. 32 * 33 * The filter name is dynamic and depends on the $type parameter. 34 * 35 * @since 1.5.2 36 * 37 * @param string $template The template path. 38 */ 39 return apply_filters( "{$type}_template", $template ); 30 40 } 31 41 32 42 /**