Make WordPress Core

Changeset 8604


Ignore:
Timestamp:
08/10/2008 02:12:18 AM (17 years ago)
Author:
azaozz
Message:

Strip slashes when inserting media into the editor. Fixes #7488 for 2.6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/includes/media.php

    r8417 r8604  
    282282        $keys = array_keys($_POST['send']);
    283283        $send_id = (int) array_shift($keys);
    284         $attachment = $_POST['attachments'][$send_id];
     284        $attachment = stripslashes_deep( $_POST['attachments'][$send_id] );
    285285        $html = $attachment['post_title'];
    286286        if ( !empty($attachment['url']) ) {
Note: See TracChangeset for help on using the changeset viewer.