Opened 9 years ago
Closed 9 years ago
#35325 closed defect (bug) (duplicate)
Image metadata not created when IPTC keywords are non-utf8
Reported by: | johsw | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4 |
Component: | Media | Keywords: | has-patch needs-unit-tests |
Focuses: | Cc: |
Description
If an image contains non-utf8 IPTC-keywords attachment metadata are not created properly.
The problem is in the function wp_read_image_metadata. Keywords are added to the $meta array (line 334), but the values are not checked for utf8 as other $meta-values are (line 407).
This is causes problems, several places places like media library, when using press images from non-english speaking countries, like Denmark
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
The functionality is introduced in this ticket: https://core.trac.wordpress.org/ticket/33772 and committed here: https://core.trac.wordpress.org/changeset/34374