WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/16/2010 09:44:49 AM (8 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/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
Note: See TracChangeset for help on using the changeset viewer.