WordPress.org

Make WordPress Core

Changeset 8605


Ignore:
Timestamp:
08/10/08 02:14:13 (6 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r8600 r8605  
    281281        $keys = array_keys($_POST['send']); 
    282282        $send_id = (int) array_shift($keys); 
    283         $attachment = $_POST['attachments'][$send_id]; 
     283        $attachment = stripslashes_deep( $_POST['attachments'][$send_id] ); 
    284284        $html = $attachment['post_title']; 
    285285        if ( !empty($attachment['url']) ) { 
Note: See TracChangeset for help on using the changeset viewer.