[wp-trac] [WordPress Trac] #63108: deprecated warning in /wp-includes/kses.php
WordPress Trac
noreply at wordpress.org
Sat Mar 15 09:26:47 UTC 2025
#63108: deprecated warning in /wp-includes/kses.php
--------------------------+-------------------------------
Reporter: rpayne7264 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Security | Version: 6.7.2
Severity: normal | Keywords: changes-requested
Focuses: |
--------------------------+-------------------------------
one deprecated warning in /wp-includes/kses.php:
Backtrace from warning 'preg_replace(): Passing null to parameter !#3
($subject) of type array|string is deprecated' at /wp-includes/kses.php
1805:
This is the line of code causing the error: {{{$content = preg_replace(
'/[\x00-\x08\x0B\x0C\x0E-\x1F]/', '', $content );}}}
This is the adjusted code to fix the issue: {{{$content =
preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F]/', '', $content ?? '');}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63108>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list