[wp-trac] [WordPress Trac] #37989: Unexpected change to media title behavior in WP 4.6.1

WordPress Trac noreply at wordpress.org
Thu Sep 29 01:20:12 UTC 2016


#37989: Unexpected change to media title behavior in WP 4.6.1
---------------------------------------------+------------------------
 Reporter:  arhenderson63                    |       Owner:  joemcgill
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.6.2
Component:  Media                            |     Version:  4.6.1
 Severity:  major                            |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+------------------------
Changes (by joemcgill):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38673"]:
 {{{
 #!CommitTicketReference repository="" revision="38673"
 Media: Use `wp_basename()` to create attachment titles from filenames.

 In [38294], `pathinfo()` was used with the `PATHINFO_BASENAME` constant to
 get the basename of the file to be used as an attachment title, which
 depends
 on PHP locale and can cause issues with UTF-8 characters. This uses
 `wp_basename()` instead, which is a more i18n-friendly version of
 `basename()`.

 Props SergeyBiryukov.
 Fixes #37608, #37989.
 }}}

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


More information about the wp-trac mailing list