[wp-trac] [WordPress Trac] #43170: Replace all usages of basename() with wp_basename() in order to support multibyte filenames

WordPress Trac noreply at wordpress.org
Fri Mar 1 20:57:34 UTC 2019


#43170: Replace all usages of basename() with wp_basename() in order to support
multibyte filenames
-----------------------------+---------------------
 Reporter:  Viper007Bond     |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  5.2
Component:  Media            |     Version:  4.9.2
 Severity:  normal           |  Resolution:
 Keywords:  has-patch early  |     Focuses:
-----------------------------+---------------------

Comment (by jorbin):

 In [changeset:"44785" 44785]:
 {{{
 #!CommitTicketReference repository="" revision="44785"
 Replace usages of basename() with wp_basename() in order to support
 multibyte filenames

 This is focused on the pieces of code that touch media files and the tests
 that support them. `basename` isn't multibyte compatible out of the box.
 See http://php.net/basename and https://bugs.php.net/bug.php?id=62119.

 See #43170.
 Props Viper007Bond.
 }}}

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


More information about the wp-trac mailing list