[wp-trac] [WordPress Trac] #47357: $allowedentitynames could be null
WordPress Trac
noreply at wordpress.org
Thu May 23 00:18:55 UTC 2019
#47357: $allowedentitynames could be null
--------------------------+-----------------------------
Reporter: doctorlai | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Every time when I upgrade wordpress to latest version, the wp-
include/kses.php gets overwritten and the line 1758 where
$allowedentitynames could be null.
It throws lots of warnings saying $allowedentitynames is null and function
in_array cannot accept null as second parameter.
My manual fix is to add the following check before return:
if (!$allowedentitynames) return "&$i;";
if would be nice to have this investigated and fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47357>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list