Changeset 44578
- Timestamp:
- 01/14/2019 05:04:12 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r44574 r44578 121 121 122 122 $doc = new DOMDocument(); 123 124 // Suppress warnings generated by loadHTML 125 $errors = libxml_use_internal_errors( true ); 123 126 @$doc->loadHTML( 124 127 sprintf( … … 128 131 ) 129 132 ); 133 libxml_use_internal_errors( $errors ); 134 130 135 $body = $doc->getElementsByTagName( 'body' )->item( 0 ); 131 136 -
trunk/tests/phpunit/tests/widgets/text-widget.php
r43571 r44578 573 573 '<span class="hello"></span>', 574 574 '<blockquote>Quote <footer>Citation</footer></blockquote>', 575 '<img src=\"http://example.com/img.jpg\" border=\"0\" title=\"Example\" /></a>', 575 576 '<span></span>', 576 577 "<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>",
Note: See TracChangeset
for help on using the changeset viewer.