- Timestamp:
- 12/02/2016 12:24:19 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-header-image-setting.php
r35385 r39411 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.