Make WordPress Core

Changeset 30463 for branches/3.9


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

Validate image data.

Merges [30458] to the 3.9 branch.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

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

    r27997 r30463  
    367367    }
    368368
     369    foreach ( $meta as &$value ) {
     370        if ( is_string( $value ) ) {
     371            $value = wp_kses_post( $value );
     372        }
     373    }
     374
    369375    /**
    370376     * Filter the array of meta data read from an image's exif data.
Note: See TracChangeset for help on using the changeset viewer.