[wp-trac] [WordPress Trac] #54060: kses.php global $allowedxmlentitynames naming
WordPress Trac
noreply at wordpress.org
Fri Sep 3 09:18:54 UTC 2021
#54060: kses.php global $allowedxmlentitynames naming
----------------------------------------+---------------------
Reporter: ovidiul | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+---------------------
Comment (by ovidiul):
Added unit test for the **wp_kses_xml_named_entities** function inside the
patch, however, I fail to find a simple way to test if the global names
are setup properly inside kses.php file to prevent similar issues, other
than maybe plain syntax check.
I've been trying to do this through **spl_autoload_register**, but that
seems to require a more isolated environment outside WordPress Unit Tests.
Any suggestions?
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54060#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list