[wp-trac] [WordPress Trac] #57579: Replace most strip_tags() with wp_strip_all_tags()
WordPress Trac
noreply at wordpress.org
Mon Feb 24 18:33:33 UTC 2025
#57579: Replace most strip_tags() with wp_strip_all_tags()
-------------------------------------------------+-------------------------
Reporter: ipajen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: php81 has-patch changes-requested | Focuses: php-
needs-unit-tests | compatibility
-------------------------------------------------+-------------------------
Comment (by joemcgill):
The currently proposed PRs only cover the initial use case prior to the
scope of this ticket being broadened to include all uses of `strip_tags()`
in Core.
Given that error handling has been handled in `wp_strip_all_tags` in
#56434 we should likely make the change to using that function directly in
all cases. This will still call `wp_trigger_error()` if an unexpected
value is passed to those functions, which should be expected so that any
bugs introduced in Core or by 3rd party code can be identified and fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57579#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list