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/class-wp-customize-control.php

    r41822 r41935  
    422422        $class = 'customize-control customize-control-' . $this->type;
    423423
    424         ?><li id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class ); ?>">
    425             <?php $this->render_content(); ?>
    426         </li><?php
     424        printf( '<li id="%s" class="%s">', esc_attr( $id ), esc_attr( $class ) );
     425        $this->render_content();
     426        echo '</li>';
    427427    }
    428428
Note: See TracChangeset for help on using the changeset viewer.