WordPress.org

Make WordPress Core


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.