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/tests/phpunit/tests/customize/widgets.php

    r40716 r41935  
    422422
    423423        $this->assertEquals( 'widget_form', $params['type'] );
    424         $this->assertRegExp( '#^<li[^>]+>\s+</li>$#', $params['content'] );
     424        $this->assertRegExp( '#^<li[^>]+>\s*</li>$#', $params['content'] );
    425425        $this->assertRegExp( '#^<div[^>]*class=\'widget\'[^>]*#s', $params['widget_control'] );
    426426        $this->assertContains( '<div class="widget-content"></div>', $params['widget_control'] );
Note: See TracChangeset for help on using the changeset viewer.