mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Deprecate require_if_theme_supports(). Always require post-thumbnail-template.php. fixes #20556. fixes #20409.
git-svn-id: https://develop.svn.wordpress.org/trunk@20610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1511,18 +1511,6 @@ function current_theme_supports( $feature ) {
|
||||
return apply_filters('current_theme_supports-' . $feature, true, $args, $_wp_theme_features[$feature]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks a theme's support for a given feature before loading the functions which implement it.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @param string $feature the feature being checked
|
||||
* @param string $include the file containing the functions that implement the feature
|
||||
*/
|
||||
function require_if_theme_supports( $feature, $include) {
|
||||
if ( current_theme_supports( $feature ) )
|
||||
require ( $include );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks an attachment being deleted to see if it's a header or background image.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user