Make WordPress Core


Ignore:
Timestamp:
01/14/2019 05:04:12 AM (7 years ago)
Author:
pento
Message:

Widgets: Don't log invalid HTML in the Text Widget.

[41215] supresses these irrelevant error messages from the front end, this removes them from the error log, too.

Props jeherve.
Fixes #43815.

File:
1 edited

Legend:

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

    r43571 r44578  
    573573            '<span class="hello"></span>',
    574574            '<blockquote>Quote <footer>Citation</footer></blockquote>',
     575            '<img src=\"http://example.com/img.jpg\" border=\"0\" title=\"Example\" /></a>',
    575576            '<span></span>',
    576577            "<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.