Changeset 45654
- Timestamp:
- 07/17/2019 06:16:27 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-background.php
r45583 r45654 519 519 set_theme_mod( 'background_image_thumb', esc_url_raw( $thumbnail[0] ) ); 520 520 521 /** This action is documented in wp-admin/ custom-header.php */521 /** This action is documented in wp-admin/includes/class-custom-image-header.php */ 522 522 do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication 523 523 $this->updated = true; -
trunk/src/wp-admin/includes/ajax-actions.php
r45611 r45654 3680 3680 } 3681 3681 3682 /** This filter is documented in wp-admin/ custom-header.php */3682 /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ 3683 3683 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. 3684 3684 $object = $wp_site_icon->create_attachment_object( $cropped, $attachment_id ); … … 3708 3708 do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped ); 3709 3709 3710 /** This filter is documented in wp-admin/ custom-header.php */3710 /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ 3711 3711 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. 3712 3712 -
trunk/src/wp-admin/includes/class-custom-image-header.php
r45653 r45654 826 826 } 827 827 828 /** This filter is documented in wp-admin/ custom-header.php */828 /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ 829 829 $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication 830 830 … … 969 969 } 970 970 971 /** This filter is documented in wp-admin/ custom-header.php */971 /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ 972 972 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication 973 973 … … 1305 1305 } 1306 1306 1307 /** This filter is documented in wp-admin/ custom-header.php */1307 /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ 1308 1308 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication 1309 1309 -
trunk/src/wp-includes/customize/class-wp-customize-header-image-setting.php
r42343 r45654 32 32 // If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin(). 33 33 if ( empty( $custom_image_header ) ) { 34 require_once( ABSPATH . 'wp-admin/ custom-header.php' );34 require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' ); 35 35 $args = get_theme_support( 'custom-header' ); 36 36 $admin_head_callback = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] : null; -
trunk/src/wp-includes/theme.php
r45639 r45654 2605 2605 2606 2606 if ( is_admin() ) { 2607 require_once( ABSPATH . 'wp-admin/ custom-header.php' );2607 require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' ); 2608 2608 $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 2609 2609 } -
trunk/tests/phpunit/tests/image/header.php
r42343 r45654 1 1 <?php 2 require_once( ABSPATH . 'wp-admin/ custom-header.php' );2 require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' ); 3 3 4 4 /**
Note: See TracChangeset
for help on using the changeset viewer.