Ticket #21213: template_php.patch
File template_php.patch, 491 bytes (added by , 11 years ago) |
---|
-
wp-includes/template.php
21 21 * @return string Full path to file. 22 22 */ 23 23 function get_query_template( $type, $templates = array() ) { 24 $type = preg_replace( '|[^a-z0-9- ]+|', '', $type );24 $type = preg_replace( '|[^a-z0-9-_]+|', '', $type ); 25 25 26 26 if ( empty( $templates ) ) 27 27 $templates = array("{$type}.php");