Make WordPress Core

Changeset 8480


Ignore:
Timestamp:
07/28/2008 11:58:24 PM (16 years ago)
Author:
ryan
Message:

Store current user rather than original post author when saving revisions. Props mdawaffe. fixes #7317 for trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/revision.php

    r8306 r8480  
    134134    $title = __( 'Post Revisions' );
    135135}
    136 
    137 // Converts post_author ID# into name
    138 add_filter( '_wp_post_revision_field_post_author', 'get_author_name' );
    139136
    140137require_once( 'admin-header.php' );
  • trunk/wp-includes/post.php

    r8469 r8480  
    31143114        $fields = array(
    31153115            'post_title' => __( 'Title' ),
    3116             'post_author' => __( 'Author' ),
    31173116            'post_content' => __( 'Content' ),
    31183117            'post_excerpt' => __( 'Excerpt' ),
     
    31233122
    31243123        // 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 )
    31263125            unset( $fields[$protect] );
    31273126    }
Note: See TracChangeset for help on using the changeset viewer.