Ticket #20547: 20547.diff
| File 20547.diff, 974 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/post.php
4093 4093 4094 4094 // expected_slashed (everything!) 4095 4095 $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 */ 4096 4106 $data = apply_filters( 'wp_insert_attachment_data', $data, $object ); 4097 4107 $data = wp_unslash( $data ); 4098 4108