[wp-trac] [WordPress Trac] #56434: Check that the input is a string in wp_strip_all_tags()
WordPress Trac
noreply at wordpress.org
Mon Aug 29 08:10:29 UTC 2022
#56434: Check that the input is a string in wp_strip_all_tags()
-------------------------------------------------+-------------------------
Reporter: chocofc1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Formatting | Version: 2.9
Severity: minor | Resolution:
Keywords: has-patch has-unit-tests php81 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by jrf):
The problem I have with this kind of handling is that WP is slowly turning
into a "every function handles every type of input"-engine instead of
supporting the documented functionality.
This will only set us up for failure in the future what with PHP getting
stricter all the time.
I'm not advocating that WP should become as strict as PHP, but at the very
least, let's only support the intended/documented functionality and not
make every function a catch-all for any input type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56434#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list