Changeset 41251
- Timestamp:
- 08/14/2017 05:58:23 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r41245 r41251 117 117 118 118 $doc = new DOMDocument(); 119 $doc->loadHTML( sprintf(120 '< html><head><meta charset="%s"></head><body>%s</body></html>',119 @$doc->loadHTML( sprintf( 120 '<!DOCTYPE html><html><head><meta charset="%s"></head><body>%s</body></html>', 121 121 esc_attr( get_bloginfo( 'charset' ) ), 122 122 $instance['text'] -
trunk/tests/phpunit/tests/widgets/text-widget.php
r41245 r41251 398 398 $legacy_text_examples = array( 399 399 '<span class="hello"></span>', 400 '<blockquote>Quote <footer>Citation</footer></blockquote>', 400 401 '<span></span>', 401 402 "<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.