Changeset 28582 for trunk/src/wp-includes/post.php
- Timestamp:
- 05/27/2014 12:23:21 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r28579 r28582 3148 3148 $data = compact( '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' ); 3149 3149 3150 /**3151 * Filter slashed post data just before it is inserted into the database.3152 *3153 * @since 2.7.03154 *3155 * @param array $data Array of slashed post data.3156 * @param array $postarr Array of sanitized, but otherwise unmodified post data.3157 */3158 3150 if ( 'attachment' === $post_type ) { 3151 /** 3152 * Filter attachment post data before it is updated in or added to the database. 3153 * 3154 * @since 3.9.0 3155 * 3156 * @param array $data An array of sanitized attachment post data. 3157 * @param array $postarr An array of unsanitized attachment post data. 3158 */ 3159 3159 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr ); 3160 3160 } else { 3161 /** 3162 * Filter slashed post data just before it is inserted into the database. 3163 * 3164 * @since 2.7.0 3165 * 3166 * @param array $data An array of slashed post data. 3167 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3168 */ 3161 3169 $data = apply_filters( 'wp_insert_post_data', $data, $postarr ); 3162 3170 }
Note: See TracChangeset
for help on using the changeset viewer.