Make WordPress Core


Ignore:
Timestamp:
04/27/2012 04:54:36 AM (12 years ago)
Author:
nacin
Message:

Deprecate require_if_theme_supports(). Always require post-thumbnail-template.php. fixes #20556. fixes #20409.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r20569 r20610  
    31533153    clean_post_cache( $id );
    31543154}
     3155
     3156/**
     3157 * Checks a theme's support for a given feature before loading the functions which implement it.
     3158 *
     3159 * @since 2.9.0
     3160 * @deprecated 3.4.0
     3161 * @deprecated Use require()
     3162 *
     3163 * @param string $feature the feature being checked
     3164 * @param string $include the file containing the functions that implement the feature
     3165 */
     3166function require_if_theme_supports( $feature, $include ) {
     3167    _deprecated_function( __FUNCTION__, '3.4', 'require()' );
     3168    if ( current_theme_supports( $feature ) )
     3169        require ( $include );
     3170}
Note: See TracChangeset for help on using the changeset viewer.