Ticket #43815: 43815.diff
| File 43815.diff, 1.4 KB (added by , 8 years ago) |
|---|
-
tests/phpunit/tests/widgets/text-widget.php
557 557 $legacy_text_examples = array( 558 558 '<span class="hello"></span>', 559 559 '<blockquote>Quote <footer>Citation</footer></blockquote>', 560 '<img src=\"http://example.com/img.jpg\" border=\"0\" title=\"Example\" /></a>', 560 561 '<span></span>', 561 562 "<ul>\n<li><a href=\"#\" class=\"location\"></a>List Item 1</li>\n<li><a href=\"#\" class=\"location\"></a>List Item 2</li>\n</ul>", 562 563 '<a href="#" class="map"></a>', -
src/wp-includes/widgets/class-wp-widget-text.php
120 120 } 121 121 122 122 $doc = new DOMDocument(); 123 124 // Suppress warnings generated by loadHTML 125 libxml_use_internal_errors( true ); 123 126 @$doc->loadHTML( 124 127 sprintf( 125 128 '<!DOCTYPE html><html><head><meta charset="%s"></head><body>%s</body></html>', … … 127 130 $instance['text'] 128 131 ) 129 132 ); 133 libxml_use_internal_errors( false ); 134 130 135 $body = $doc->getElementsByTagName( 'body' )->item( 0 ); 131 136 132 137 // See $allowedposttags.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)