Make WordPress Core

Changeset 1922


Ignore:
Timestamp:
12/08/2004 09:51:25 PM (21 years ago)
Author:
rboren
Message:

Define TEMPLATEPATH. Look for footer, sidebar, and header in the template directory for the active theme.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1917 r1922  
    203203endif;
    204204
    205 $wp_template_dir = get_template_directory();
     205$wp_template_dir = TEMPLATEPATH;
    206206
    207207// Template redirection
  • trunk/wp-footer.php

    r1626 r1922  
    22// If a footer.php file exists in the WP root directory we
    33// use that, otherwise use this default wp-footer.php file.
    4 if ( file_exists(ABSPATH . '/footer.php') ) :
    5     include_once(ABSPATH . '/footer.php');
     4if ( file_exists(TEMPLATEPATH . '/footer.php') ) :
     5    include_once(TEMPLATEPATH . '/footer.php');
    66else :
    77?>
  • trunk/wp-header.php

    r1763 r1922  
    22// If a header.php file exists in the WP root directory we
    33// use that, otherwise use this default wp-header.php file.
    4 if ( file_exists(ABSPATH . '/header.php') ) :
    5     include_once(ABSPATH . '/header.php');
     4if ( file_exists(TEMPLATEPATH . '/header.php') ) :
     5    include_once(TEMPLATEPATH . '/header.php');
    66else :
    77?>
  • trunk/wp-settings.php

    r1830 r1922  
    9797}
    9898
     99define('TEMPLATEPATH', get_template_directory());
     100
    99101function shutdown_action_hook() {
    100102    do_action('shutdown', '');
  • trunk/wp-sidebar.php

    r1626 r1922  
    22// If a sidebar.php file exists in the WP root directory we
    33// use that, otherwise use this default wp-sidebar.php file.
    4 if ( file_exists(ABSPATH . '/sidebar.php') ) :
    5     include_once(ABSPATH . '/sidebar.php');
     4if ( file_exists(TEMPLATEPATH . '/sidebar.php') ) :
     5    include_once(TEMPLATEPATH . '/sidebar.php');
    66else :
    77?>
Note: See TracChangeset for help on using the changeset viewer.