Make WordPress Core

Changeset 27138


Ignore:
Timestamp:
02/08/2014 10:46:25 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for the wp_insert_attachment_data filter hook, added in [27130].

Fixes #20547.

File:
1 edited

Legend:

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

    r27130 r27138  
    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
     4097    /**
     4098     * Filter attachment post data before it is updated in or added
     4099     * to the database.
     4100     *
     4101     * @since 3.9.0
     4102     *
     4103     * @param array $data   Array of sanitized attachment post data.
     4104     * @param array $object Array of un-sanitized attachment post data.
     4105     */
    40964106    $data = apply_filters( 'wp_insert_attachment_data', $data, $object );
    40974107    $data = wp_unslash( $data );
Note: See TracChangeset for help on using the changeset viewer.