Changeset 7224 for trunk/wp-includes/theme.php
- Timestamp:
- 03/11/2008 12:43:07 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r7223 r7224 343 343 function get_query_template($type) { 344 344 $template = ''; 345 $type = preg_replace( '|[ a-z0-9-]+|', '', $type );345 $type = preg_replace( '|[^a-z0-9-]+|', '', $type ); 346 346 if ( file_exists(TEMPLATEPATH . "/{$type}.php") ) 347 347 $template = TEMPLATEPATH . "/{$type}.php";
Note: See TracChangeset
for help on using the changeset viewer.