Make WordPress Core

Changeset 30464 for branches/3.8


Ignore:
Timestamp:
11/20/2014 03:58:30 PM (10 years ago)
Author:
nacin
Message:

Validate image data.

Merges [30458] to the 3.8 branch.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

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

    r25968 r30464  
    317317    }
    318318
     319    foreach ( $meta as &$value ) {
     320        if ( is_string( $value ) ) {
     321            $value = wp_kses_post( $value );
     322        }
     323    }
     324
    319325    return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType );
    320326
Note: See TracChangeset for help on using the changeset viewer.