WordPress.org

Make WordPress Core

Changeset 30462


Ignore:
Timestamp:
11/20/2014 03:52:42 PM (5 years ago)
Author:
nacin
Message:

Validate image data.

Merges [30458] to the 4.0 branch.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

  • branches/4.0/src/wp-admin/includes/image.php

    r29291 r30462  
    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.