[wp-trac] [WordPress Trac] #56434: Check that the input is a string in wp_strip_all_tags()

WordPress Trac noreply at wordpress.org
Sun Jan 29 23:00:09 UTC 2023


#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.2
Component:  Formatting                           |     Version:  2.9
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch has-unit-tests php81 2nd-  |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 The original [https://github.com/WordPress/wordpress-develop/pull/3132
 linked pull request, #3132] is been worked on to closely mirror the PHP <
 8 behavior

 * implicit conversion for scalar values
 * warning, return empty string for non-scalar values

 This retains backcompat and avoids fatal errors.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56434#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list