WordPress.org

Make WordPress Core

Changeset 7224


Ignore:
Timestamp:
03/11/08 00:43:07 (6 years ago)
Author:
matt
Message:

Smaller regex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r7223 r7224  
    343343function get_query_template($type) { 
    344344    $template = ''; 
    345     $type = preg_replace( '|[a-z0-9-]+|', '', $type ); 
     345    $type = preg_replace( '|[^a-z0-9-]+|', '', $type ); 
    346346    if ( file_exists(TEMPLATEPATH . "/{$type}.php") ) 
    347347        $template = TEMPLATEPATH . "/{$type}.php"; 
Note: See TracChangeset for help on using the changeset viewer.