Make WordPress Core

Ticket #15847: insertattachmentfilter.diff

File insertattachmentfilter.diff, 709 bytes (added by pampfelimetten, 14 years ago)
  • wp-includes/post.php

     
    33803380
    33813381        // expected_slashed (everything!)
    33823382        $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'post_mime_type', 'guid' ) );
     3383        $data = apply_filters('wp_insert_attachment_data', $data);
    33833384        $data = stripslashes_deep( $data );
    33843385
    33853386        if ( $update ) {