Make WordPress Core

Changeset 14411


Ignore:
Timestamp:
05/03/2010 09:12:23 PM (15 years ago)
Author:
westi
Message:

Remove the deprecation message for now as it shows too many false positives. See #13230.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme.php

    r14404 r14411  
    210210
    211211/**
    212  * Check the current theme for reliance on deprecated theme compatibility
    213  *
    214  * Check to see if the current theme has all the required templates available
    215  * from itself or its parent
    216 
    217  * @since 3.0
    218  * @access private
    219  * @return nothing
    220  */
    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 other
    232     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 /**
    245212 * Check if there is an update for a theme available.
    246213 *
  • trunk/wp-admin/themes.php

    r14374 r14411  
    6161<?php endif; ?>
    6262<?php
    63 _check_theme_deprecated_files();
    6463$themes = get_allowed_themes();
    6564$ct = current_theme_info();
Note: See TracChangeset for help on using the changeset viewer.