[wp-trac] [WordPress Trac] #37608: Undefined index: extension in class-wp-image-editor.php
WordPress Trac
noreply at wordpress.org
Wed Sep 14 21:51:48 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:
--------------------------------------+-----------------------------
Comment (by joemcgill):
Replying to [comment:10 jeremyfelt]:
> 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.
Note that I've incorporated the same change into
[attachment:37989.2.diff], so fixing #37989 will likely resolve this issue
as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37608#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list