Make WordPress Core

Changeset 15433


Ignore:
Timestamp:
07/16/2010 09:40:09 AM (16 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 trunk props dougal.

Location:
trunk/wp-includes
Files:
3 edited

Legend:

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

    r15363 r15433  
    921921                require( TEMPLATEPATH .  $file );
    922922        else // Backward compat code will be removed in a future release
    923                 require( WPINC . '/theme-compat/comments.php');
     923                require( ABSPATH . WPINC . '/theme-compat/comments.php');
    924924}
    925925
  • trunk/wp-includes/general-template.php

    r15355 r15433  
    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
  • trunk/wp-includes/theme.php

    r15277 r15433  
    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.