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

WordPress Trac noreply at wordpress.org
Thu Sep 8 21:18:05 UTC 2016


#37608: Undefined index: extension in class-wp-image-editor.php
--------------------------------------+-----------------------------
 Reporter:  JaworskiMatt              |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.7
Component:  Media                     |     Version:  2.5
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by jeremyfelt):

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


Comment:

 In [38294], `PATHINFO_BASENAME` was used in `media_handle_upload()` in a
 spot that had previously stripped the file extension from the basename to
 build an attachment title. This results in attachment titles of `My Title-
 jpg` instead of `My Title` for an uploaded image of `My Title.jpg`, which
 is a change in behavior.

 [attachment:37608.2.diff] uses `PATHINFO_FILENAME` instead.

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


More information about the wp-trac mailing list