[wp-trac] [WordPress Trac] #57867: Fix PHP warning when passing NULL to rtrim().

WordPress Trac noreply at wordpress.org
Sat Mar 4 12:03:04 UTC 2023


#57867: Fix PHP warning when passing NULL to rtrim().
-----------------------------------------------+---------------------------
 Reporter:  tools400                           |       Owner:  (none)
     Type:  enhancement                        |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
                                               |  Review
Component:  Formatting                         |     Version:  trunk
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch reporter-feedback php81  |     Focuses:
-----------------------------------------------+---------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch reporter-feedback => has-patch reporter-feedback
               php81


Comment:

 Thanks for the ticket!

 As noted above, the steps to reproduce the issue on a clean install would
 be helpful here.

 As far as I can tell, core by itself should no longer throw this notice as
 of [54349] / #55967, though it's still possible that a plugin or theme
 passes `null` instead of a string to this function.

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


More information about the wp-trac mailing list