Make WordPress Core


Ignore:
Timestamp:
07/17/2019 06:16:27 AM (7 years ago)
Author:
pento
Message:

Coding Standards: Move wp-admin/custom-header.php to wp-admin/includes/class-custom-image-header.php

This renames the file containing the Custom_Image_Header class to conform to the coding standards.

This commit also includes:

  • A new custom-header.php that includes the new file, for anyone that may've been including the file directly.
  • Replaces references to the old filename with the new filename.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-setting.php

    r42343 r45654  
    3232                // If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin().
    3333                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' );
    3535                        $args                   = get_theme_support( 'custom-header' );
    3636                        $admin_head_callback    = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] : null;
Note: See TracChangeset for help on using the changeset viewer.