[wp-trac] [WordPress Trac] #56434: Improve formating function wp_strip_all_tags()
WordPress Trac
noreply at wordpress.org
Wed Aug 24 20:43:30 UTC 2022
#56434: Improve formating function wp_strip_all_tags()
--------------------------+-----------------------------
Reporter: chocofc1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: minor | Keywords:
Focuses: |
--------------------------+-----------------------------
I found my error log full of:
PHP Warning: strip_tags() expects parameter 1 to be string, array given
in /wp-includes/formatting.php on line 5386
And it results that the developer of the template I was using, was causing
this error message.
Off course the logical thing to do would be to fix the template code, but
this is one of those badly designed templates with the code hard to read,
ofuscated, splited, mixed, brain-melting, so I ended up having to add 1
line to WordPress file:
/wp-includes/formatting.php line 5385
to make sure the @string is a string
Would be great if WordPress took care of this in future versions
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56434>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list