Changeset 20610
- Timestamp:
- 04/27/2012 04:54:36 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r20569 r20610 3153 3153 clean_post_cache( $id ); 3154 3154 } 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 */ 3166 function require_if_theme_supports( $feature, $include ) { 3167 _deprecated_function( __FUNCTION__, '3.4', 'require()' ); 3168 if ( current_theme_supports( $feature ) ) 3169 require ( $include ); 3170 } -
trunk/wp-includes/theme.php
r20600 r20610 1513 1513 1514 1514 /** 1515 * Checks a theme's support for a given feature before loading the functions which implement it.1516 *1517 * @since 2.9.01518 * @param string $feature the feature being checked1519 * @param string $include the file containing the functions that implement the feature1520 */1521 function require_if_theme_supports( $feature, $include) {1522 if ( current_theme_supports( $feature ) )1523 require ( $include );1524 }1525 1526 /**1527 1515 * Checks an attachment being deleted to see if it's a header or background image. 1528 1516 * -
trunk/wp-settings.php
r20029 r20610 122 122 require( ABSPATH . WPINC . '/post.php' ); 123 123 require( ABSPATH . WPINC . '/post-template.php' ); 124 require( ABSPATH . WPINC . '/post-thumbnail-template.php' ); 124 125 require( ABSPATH . WPINC . '/category.php' ); 125 126 require( ABSPATH . WPINC . '/category-template.php' ); … … 289 290 do_action( 'after_setup_theme' ); 290 291 291 // Load any template functions the theme supports.292 require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );293 294 292 // Set up current user. 295 293 $wp->init();
Note: See TracChangeset
for help on using the changeset viewer.