Make WordPress Core

Ticket #21213: template_php.patch

File template_php.patch, 491 bytes (added by rinatkhaziev, 11 years ago)

proposed patch for the bug

  • wp-includes/template.php

     
    2121 * @return string Full path to file.
    2222 */
    2323function get_query_template( $type, $templates = array() ) {
    24         $type = preg_replace( '|[^a-z0-9-]+|', '', $type );
     24        $type = preg_replace( '|[^a-z0-9-_]+|', '', $type );
    2525
    2626        if ( empty( $templates ) )
    2727                $templates = array("{$type}.php");