WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2017 03:03:19 AM (2 years ago)
Author:
westonruter
Message:

Customize: Move control's fallback selection of default content template to renderContent method to align with sections and panels.

  • Only use default control content template when a more specific template doesn't exist.
  • Remove extraneous whitespace from being output in WP_Customize_Control::render() method.
  • Move Custom Header template printing to customize_controls_print_footer_scripts action.

See #30738.

File:
1 edited

Legend:

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

    r41747 r41935  
    7878        }
    7979
     80        add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_header_image_template' ) );
     81
    8082        // Process default headers and uploaded headers.
    8183        $custom_image_header->process_default_headers();
     
    158160     */
    159161    public function render_content() {
    160         $this->print_header_image_template();
    161162        $visibility = $this->get_current_image_src() ? '' : ' style="display:none" ';
    162163        $width = absint( get_theme_support( 'custom-header', 'width' ) );
Note: See TracChangeset for help on using the changeset viewer.