WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/01/2016 02:52:15 PM (4 years ago)
Author:
ocean90
Message:

Media: In wp_read_image_metadata() make sure that IPTC keywords are UTF8 encoded.

Prevents missing _wp_attachment_metadata when an image contains keywords with latin extended characters.

Fixes #35316.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r36232 r36429  
    15831583
    15841584/**
     1585 * Navigates through an array, object, or scalar, and sanitizes content for
     1586 * allowed HTML tags for post content.
     1587 *
     1588 * @since 4.4.2
     1589 *
     1590 * @param mixed $value The array or string to filter.
     1591 * @return mixed $value The filtered content.
     1592 */
     1593function wp_kses_post_deep( $data ) {
     1594    return map_deep( $data, 'wp_kses_post' );
     1595}
     1596
     1597/**
    15851598 * Strips all of the HTML in the content.
    15861599 *
Note: See TracChangeset for help on using the changeset viewer.