Changeset 22544 for trunk/wp-includes/theme.php
- Timestamp:
- 11/11/2012 07:11:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r22436 r22544 1032 1032 } else { 1033 1033 $data = get_theme_mod( 'header_image_data' ); 1034 if ( ! $data && current_theme_supports( 'custom-header', 'default-image' ) ) {1034 if ( ! $data && isset( $_wp_default_headers ) && current_theme_supports( 'custom-header', 'default-image' ) ) { 1035 1035 $directory_args = array( get_template_directory_uri(), get_stylesheet_directory_uri() ); 1036 1036 $default_image = vsprintf( get_theme_support( 'custom-header', 'default-image' ), $directory_args ); 1037 foreach ( $_wp_default_headers as $header => $details ) {1037 foreach ( (array) $_wp_default_headers as $header => $details ) { 1038 1038 $url = vsprintf( $details['url'], $directory_args ); 1039 1039 if ( $default_image == $url ) {
Note: See TracChangeset
for help on using the changeset viewer.