[wp-trac] [WordPress Trac] #48955: WP 5.3.1 changes cause potential backwards compatibility breakage with kses
WordPress Trac
noreply at wordpress.org
Mon Dec 16 21:40:41 UTC 2019
#48955: WP 5.3.1 changes cause potential backwards compatibility breakage with kses
--------------------------+---------------------
Reporter: iCaleb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3.2
Component: Security | Version: 5.3.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by iCaleb):
Sites will be generating PHP warnings when an array is passed in now. So
that is, in a way, a warning for plugin authors. Example:
> Warning: preg_match() expects parameter 2 to be string, array given in
/wp-includes/class-wp-block-parser.php on line 417
> Warning: strlen() expects parameter 1 to be string, array given in /wp-
includes/class-wp-block-parser.php on line 489
As for examples, here are two:
- https://github.com/wpninjas/ninja-
forms/blob/83cccc6815c98a7ef50ca62704b2661eb53dd3cc/includes/MergeTags/Other.php#L54
- https://github.com/sugarcalendar/lite/blob/master/sugar-event-
calendar/includes/admin/list-tables/class-wp-list-table-base.php#L1667
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48955#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list