Ticket #7317: 7317.diff
| File 7317.diff, 1.3 KB (added by mdawaffe, 4 years ago) |
|---|
-
wp-includes/post.php
3113 3113 // Allow these to be versioned 3114 3114 $fields = array( 3115 3115 'post_title' => __( 'Title' ), 3116 'post_author' => __( 'Author' ),3117 3116 'post_content' => __( 'Content' ), 3118 3117 'post_excerpt' => __( 'Excerpt' ), 3119 3118 ); … … 3122 3121 $fields = apply_filters( '_wp_post_revision_fields', $fields ); 3123 3122 3124 3123 // WP uses these internally either in versioning or elsewhere - they cannot be versioned 3125 foreach ( array( 'ID', 'post_name', 'post_parent', 'post_date', 'post_date_gmt', 'post_status', 'post_type', 'comment_count' ) as $protect )3124 foreach ( array( 'ID', 'post_name', 'post_parent', 'post_date', 'post_date_gmt', 'post_status', 'post_type', 'comment_count', 'post_author' ) as $protect ) 3126 3125 unset( $fields[$protect] ); 3127 3126 } 3128 3127 -
wp-admin/revision.php
134 134 $title = __( 'Post Revisions' ); 135 135 } 136 136 137 // Converts post_author ID# into name138 add_filter( '_wp_post_revision_field_post_author', 'get_author_name' );139 140 137 require_once( 'admin-header.php' ); 141 138 142 139 ?>
