WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/16/10 09:44:49 (7 years ago)
Author:
westi
Message:

Fix the theme compat file require paths to be fully absolute so they don't rely on a particular php path to work. Fixes #14315 for 3.0 branch
props dougal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/theme.php

    r15276 r15434  
    10241024    // Backward compat code will be removed in a future release 
    10251025    if ('' == $template) 
    1026         $template = WPINC . '/theme-compat/comments-popup.php'; 
     1026        $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php'; 
    10271027 
    10281028    return apply_filters('comments_popup_template', $template); 
     
    10821082    if ( is_array( $wp_query->query_vars ) ) 
    10831083        extract( $wp_query->query_vars, EXTR_SKIP ); 
     1084 
     1085    error_log( $_template_file ); 
    10841086 
    10851087    if ( $require_once ) 
Note: See TracChangeset for help on using the changeset viewer.