Changeset 41391
- Timestamp:
- 09/19/2017 07:38:21 AM (8 years ago)
- Location:
- branches/4.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/widgets/class-wp-widget-text.php
r41135 r41391 116 116 117 117 $doc = new DOMDocument(); 118 $doc->loadHTML( sprintf(119 '< html><head><meta charset="%s"></head><body>%s</body></html>',118 @$doc->loadHTML( sprintf( 119 '<!DOCTYPE html><html><head><meta charset="%s"></head><body>%s</body></html>', 120 120 esc_attr( get_bloginfo( 'charset' ) ), 121 121 $instance['text'] -
branches/4.8/tests/phpunit/tests/widgets/text-widget.php
r41135 r41391 397 397 $legacy_text_examples = array( 398 398 '<span class="hello"></span>', 399 '<blockquote>Quote <footer>Citation</footer></blockquote>', 399 400 '<span></span>', 400 401 "<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.