[wp-trac] [WordPress Trac] #43312: PHP 7.2 warning in wp_kses_attr()
WordPress Trac
noreply at wordpress.org
Sun Mar 18 16:10:04 UTC 2018
#43312: PHP 7.2 warning in wp_kses_attr()
-------------------------------------------------+-------------------------
Reporter: andrei0x309 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.9.5
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests reporter- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by soulseekah):
Hmm, agreed, `false` should not really be supported, the default
`$allowedtags` structure lists elements with no supported attributes with
an empty array (`array()`). What's the use case here @andrei0x309, how did
you find out about this warning? Is core code calling this incorrectly?
Perhaps we should scan the plugin directory, @SergeyBiryukov for the
incorrect usage/structure of `$allowedtags`, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43312#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list