Make WordPress Core

Changeset 27130


Ignore:
Timestamp:
02/08/2014 12:43:16 AM (11 years ago)
Author:
wonderboymusic
Message:

Add a filter wp_insert_attachment_data in wp_insert_attachment(). This is similar to the wp_insert_post_data filter in wp_insert_post().

Fixes #20547.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r27115 r27130  
    40944094    // expected_slashed (everything!)
    40954095    $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' ) );
     4096    $data = apply_filters( 'wp_insert_attachment_data', $data, $object );
    40964097    $data = wp_unslash( $data );
    40974098
Note: See TracChangeset for help on using the changeset viewer.