Changeset 14411
- Timestamp:
- 05/03/2010 09:12:23 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r14404 r14411 210 210 211 211 /** 212 * Check the current theme for reliance on deprecated theme compatibility213 *214 * Check to see if the current theme has all the required templates available215 * from itself or its parent216 217 * @since 3.0218 * @access private219 * @return nothing220 */221 function _check_theme_deprecated_files() {222 $files = array( );223 224 if ( ! locate_template( array( 'header.php' ) ) )225 $files[] = 'header.php';226 if ( ! locate_template( array( 'footer.php' ) ) )227 $files[] = 'footer.php';228 if ( ! locate_template( array( 'sidebar.php' ) ) )229 $files[] = 'sidebar.php';230 231 // Only notify if both are missing as you can use one or the other232 if ( ! locate_template( array( 'comments.php' ) ) && ! locate_template( array( 'comments-popup.php' ) ) ) {233 $files[] = 'comments.php';234 $files[] = 'comments-popup.php';235 }236 237 if ( ! empty( $files ) ) : ?>238 <div id="deprecated-files-message" class="error"><p>239 <?php echo sprintf( __('The current theme is incomplete as it is missing %1$s. Please update your theme to include these files as you are currently relying on deprecated behaviour.'), implode( $files, ', ') ); ?>240 </p></div>241 <?php endif;242 }243 244 /**245 212 * Check if there is an update for a theme available. 246 213 * -
trunk/wp-admin/themes.php
r14374 r14411 61 61 <?php endif; ?> 62 62 <?php 63 _check_theme_deprecated_files();64 63 $themes = get_allowed_themes(); 65 64 $ct = current_theme_info();
Note: See TracChangeset
for help on using the changeset viewer.