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

WordPress Trac noreply at wordpress.org
Sat Mar 4 11:00:49 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       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 I have created a pull request for fixing the following PHP warning in src
 /wp-includes/formatting.php:

 [04-Mar-2023 10:45:00 UTC] PHP Deprecated:  rtrim(): Passing null to
 parameter #1 ($string) of type string is deprecated in
 /homepages/36/d24807059/htdocs/clickandbuilds/BergsportFamilieRaddatz/wp-
 includes/formatting.php on line 2786

 The warning was appended to the debug log when opening and refreshing the
 dashboard.

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


More information about the wp-trac mailing list