Make WordPress Core


Ignore:
Timestamp:
07/21/2017 09:01:45 PM (7 years ago)
Author:
westonruter
Message:

Widgets: Include widget_text class name on Custom HTML widget wrapper for theme styling compatibility, in addition to previously-added textwidget class on nested content container.

Amends [40893], [41115].
See #40907.
Fixes #41392 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets/custom-html-widget.php

    r41115 r41116  
    5252            'before_title'  => '<h2>',
    5353            'after_title'   => "</h2>\n",
    54             'before_widget' => '<section>',
     54            'before_widget' => '<section id="custom_html-5" class="widget widget_custom_html">',
    5555            'after_widget'  => "</section>\n",
    5656        );
     
    7171        $this->assertNotEmpty( $this->widget_text_args );
    7272        $this->assertContains( '[filter:widget_text][filter:widget_custom_html_content]', $output );
    73         $this->assertContains( '<div class="textwidget custom-html-widget">', $output );
     73        $this->assertContains( '<section id="custom_html-5" class="widget_text widget widget_custom_html">', $output );
     74        $this->assertContains( 'class="widget_text widget widget_custom_html"', $output );
    7475        $this->assertNotContains( '<p>', $output );
    7576        $this->assertNotContains( '<br>', $output );
Note: See TracChangeset for help on using the changeset viewer.