[wp-trac] [WordPress Trac] #59757: Function wp_normalize_path() is causing a deprecated error when $path is null.

WordPress Trac noreply at wordpress.org
Fri Oct 27 18:53:08 UTC 2023


#59757: Function wp_normalize_path() is causing a deprecated error when $path is
null.
----------------------------+------------------------------
 Reporter:  garymarkfuller  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:  6.3.2
 Severity:  normal          |  Resolution:
 Keywords:  php81           |     Focuses:
----------------------------+------------------------------
Changes (by jrf):

 * keywords:   => php81
 * focuses:  php-compatibility =>


Comment:

 @garymarkfuller Thanks for reporting this. This issue will need a
 backtrace to figure out where the error is coming from.

 The
 [https://developer.wordpress.org/reference/functions/wp_normalize_path/
 wp_normalize_path()] function is documented as only accepting a `string`
 and the error you are reporting means something somewhere is passing
 `null` to `wp_normalize_path()`. This needs to be fixed at the source of
 the problem, not in the `wp_normalize_path()` function.

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


More information about the wp-trac mailing list