Make WordPress Core

Ticket #20547: 20547.diff

File 20547.diff, 974 bytes (added by DrewAPicture, 12 years ago)

filter docs

  • src/wp-includes/post.php

     
    40934093
    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 );
    40984108