WordPress.org

Make WordPress Core

Changeset 7223


Ignore:
Timestamp:
03/11/2008 12:37:29 AM (12 years ago)
Author:
matt
Message:

Big regex for type.

File:
1 edited

Legend:

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

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