Changeset 39412 for branches/4.7/src/wp-includes/customize/class-wp-customize-header-image-setting.php
- Timestamp:
- 12/02/2016 12:25:47 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/customize/class-wp-customize-header-image-setting.php
r35385 r39412 30 30 global $custom_image_header; 31 31 32 // If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin(). 33 if ( empty( $custom_image_header ) ) { 34 require_once( ABSPATH . 'wp-admin/custom-header.php' ); 35 $args = get_theme_support( 'custom-header' ); 36 $admin_head_callback = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] : null; 37 $admin_preview_callback = isset( $args[0]['admin-preview-callback'] ) ? $args[0]['admin-preview-callback'] : null; 38 $custom_image_header = new Custom_Image_Header( $admin_head_callback, $admin_preview_callback ); 39 } 40 32 41 // If the value doesn't exist (removed or random), 33 42 // use the header_image value.
Note: See TracChangeset
for help on using the changeset viewer.