Changeset 14365
- Timestamp:
- 05/03/2010 09:57:24 AM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r14347 r14365 890 890 elseif ( file_exists( TEMPLATEPATH . $file ) ) 891 891 require( TEMPLATEPATH . $file ); 892 else 893 require( get_theme_root() . '/'.WP_FALLBACK_THEME.'/comments.php');892 else // Backward compat code will be removed in a future release 893 require( WPINC . '/theme-compat/comments.php'); 894 894 } 895 895 -
trunk/wp-includes/general-template.php
r14360 r14365 11 11 * 12 12 * Includes the header template for a theme or if a name is specified then a 13 * specialised header will be included. If the theme contains no header.php file 14 * then the header from the WP_FALLBACK_THEME theme will be included. 13 * specialised header will be included. 15 14 * 16 15 * For the parameter, if the file is called "header-special.php" then specify … … 32 31 $templates[] = "header.php"; 33 32 33 // Backward compat code will be removed in a future release 34 34 if ('' == locate_template($templates, true)) 35 load_template( get_theme_root() . '/'. WP_FALLBACK_THEME. '/header.php');35 load_template( WPINC . '/theme-compat/header.php'); 36 36 } 37 37 … … 40 40 * 41 41 * Includes the footer template for a theme or if a name is specified then a 42 * specialised footer will be included. If the theme contains no footer.php file 43 * then the footer from the default theme will be included. 42 * specialised footer will be included. 44 43 * 45 44 * For the parameter, if the file is called "footer-special.php" then specify … … 61 60 $templates[] = "footer.php"; 62 61 62 // Backward compat code will be removed in a future release 63 63 if ('' == locate_template($templates, true)) 64 load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/footer.php');64 load_template( WPINC . '/theme-compat/footer.php'); 65 65 } 66 66 … … 69 69 * 70 70 * Includes the sidebar template for a theme or if a name is specified then a 71 * specialised sidebar will be included. If the theme contains no sidebar.php 72 * file then the sidebar from the default theme will be included. 71 * specialised sidebar will be included. 73 72 * 74 73 * For the parameter, if the file is called "sidebar-special.php" then specify … … 90 89 $templates[] = "sidebar.php"; 91 90 91 // Backward compat code will be removed in a future release 92 92 if ('' == locate_template($templates, true)) 93 load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/sidebar.php');93 load_template( WPINC . '/theme-compat/sidebar.php'); 94 94 } 95 95 -
trunk/wp-includes/theme.php
r14360 r14365 984 984 * 985 985 * Checks for comment popup template in current template, if it exists or in the 986 * parent template. If it doesn't exist, then it retrieves the comment-popup.php 987 * file from the WP_FALLBACK_THEME theme. The WP_FALLBACK_THEME theme must then exist for it to 988 * work. 986 * parent template. 989 987 * 990 988 * @since 1.5.0 … … 995 993 function get_comments_popup_template() { 996 994 $template = locate_template(array("comments-popup.php")); 995 996 // Backward compat code will be removed in a future release 997 997 if ('' == $template) 998 $template = get_theme_root() . '/' . WP_FALLBACK_THEME . '/comments-popup.php';998 $template = WPINC . '/theme-compat/comments-popup.php'; 999 999 1000 1000 return apply_filters('comments_popup_template', $template);
Note: See TracChangeset
for help on using the changeset viewer.