[buddypress-trac] [BuddyPress Trac] #7484: Resize member avatar error with cyrillic (not latin) filename

buddypress-trac noreply at wordpress.org
Thu Apr 27 17:13:24 UTC 2017


#7484: Resize member avatar error with cyrillic (not latin) filename
--------------------------+----------------------------------
 Reporter:  snookerist    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Under Consideration
Component:  Core          |     Version:  2.3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+----------------------------------
Changes (by r-a-y):

 * milestone:  Awaiting Review => Under Consideration


Comment:

 `01.patch` makes use of a PHP 5.4 function called
 `transliterator_transliterate()` if available.  That function also works
 if the PECL `intl` is installed.

 If not available, we use WP's `remove_accents()`, which covers quite a few
 languages, but not all like Cyrillic.  After that, if the filename still
 has some utf8 characters, we use `iconv()` if it exists.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7484#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list