WordPress.org

Make WordPress Core

Changeset 30458


Ignore:
Timestamp:
11/20/2014 03:24:40 PM (6 years ago)
Author:
nacin
Message:

Validate image data.

File:
1 edited

Legend:

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

    r29291 r30458  
    402402    }
    403403
     404    foreach ( $meta as &$value ) {
     405        if ( is_string( $value ) ) {
     406            $value = wp_kses_post( $value );
     407        }
     408    }
     409
    404410    /**
    405411     * Filter the array of meta data read from an image's exif data.
Note: See TracChangeset for help on using the changeset viewer.