[wp-trac] [WordPress Trac] #37608: Undefined index: extension in class-wp-image-editor.php

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


#37608: Undefined index: extension in class-wp-image-editor.php
--------------------------------------+-----------------------------
 Reporter:  JaworskiMatt              |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Media                     |     Version:  2.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     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/37608#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list