Make WordPress Core

Changeset 15434


Ignore:
Timestamp:
07/16/2010 09:44:49 AM (14 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.

Location:
branches/3.0/wp-includes
Files:
3 edited

Legend:

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

    r15364 r15434  
    918918        require( TEMPLATEPATH .  $file );
    919919    else // Backward compat code will be removed in a future release
    920         require( WPINC . '/theme-compat/comments.php');
     920        require( ABSPATH . WPINC . '/theme-compat/comments.php');
    921921}
    922922
  • branches/3.0/wp-includes/general-template.php

    r15227 r15434  
    3333    // Backward compat code will be removed in a future release
    3434    if ('' == locate_template($templates, true))
    35         load_template( WPINC . '/theme-compat/header.php');
     35        load_template( ABSPATH . WPINC . '/theme-compat/header.php');
    3636}
    3737
     
    6262    // Backward compat code will be removed in a future release
    6363    if ('' == locate_template($templates, true))
    64         load_template( WPINC . '/theme-compat/footer.php');
     64        load_template( ABSPATH . WPINC . '/theme-compat/footer.php');
    6565}
    6666
     
    9191    // Backward compat code will be removed in a future release
    9292    if ('' == locate_template($templates, true))
    93         load_template( WPINC . '/theme-compat/sidebar.php');
     93        load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php');
    9494}
    9595
  • 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.