mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -7,7 +7,7 @@ function get_header() {
|
||||
if ( file_exists( TEMPLATEPATH . '/header.php') )
|
||||
load_template( TEMPLATEPATH . '/header.php');
|
||||
else
|
||||
load_template( ABSPATH . 'wp-content/themes/default/header.php');
|
||||
load_template( WP_CONTENT_DIR . '/themes/default/header.php');
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ function get_footer() {
|
||||
if ( file_exists( TEMPLATEPATH . '/footer.php') )
|
||||
load_template( TEMPLATEPATH . '/footer.php');
|
||||
else
|
||||
load_template( ABSPATH . 'wp-content/themes/default/footer.php');
|
||||
load_template( WP_CONTENT_DIR . '/themes/default/footer.php');
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ function get_sidebar( $name = null ) {
|
||||
elseif ( file_exists( TEMPLATEPATH . '/sidebar.php') )
|
||||
load_template( TEMPLATEPATH . '/sidebar.php');
|
||||
else
|
||||
load_template( ABSPATH . 'wp-content/themes/default/sidebar.php');
|
||||
load_template( WP_CONTENT_DIR . '/themes/default/sidebar.php');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user