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

WordPress Trac noreply at wordpress.org
Tue Sep 27 03:46:28 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 SergeyBiryukov):

 The issue with `pathinfo()` is that it depends on PHP locale and does not
 always work correctly with UTF-8 characters, leading to issues with
 truncated titles, see comment:40:ticket:37989.

 We've encountered similar issues with `basename()` before, see #21217 and
 #23267.

 [38294] needs a thorough test with multibyte file names. Some of the
 `pathinfo()` instances may need to be replaced with `wp_basename()`, which
 is the i18n-friendly version of `basename()`.

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


More information about the wp-trac mailing list