Ticket #13382: 13382.2.diff
File 13382.2.diff, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-includes/revision.php
43 43 * and 'post_author'. 44 44 * 45 45 * @since 2.6.0 46 * @since 4.4.0 The `$post` parameter was added. 46 47 * 47 * @param array $fields List of fields to revision. Contains 'post_title', 48 * 'post_content', and 'post_excerpt' by default. 48 * @param array $fields List of fields to revision. Contains 'post_title', 49 * 'post_content', and 'post_excerpt' by default. 50 * @param null|array $post A post array being processed for insertion as a post revision. 51 * Null if no post was passed to the function. 49 52 */ 50 $fields = apply_filters( '_wp_post_revision_fields', $fields );53 $fields = apply_filters( '_wp_post_revision_fields', $fields, $post ); 51 54 52 55 // WP uses these internally either in versioning or elsewhere - they cannot be versioned 53 56 foreach ( array( 'ID', 'post_name', 'post_parent', 'post_date', 'post_date_gmt', 'post_status', 'post_type', 'comment_count', 'post_author' ) as $protect )