Sync "Last edited" on Edit Page screen to that on Edit Post screen. see #6250

git-svn-id: http://svn.automattic.com/wordpress/trunk@7342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-03-17 03:34:04 +00:00
parent 0f9573513d
commit 0e881155a8
1 changed files with 7 additions and 1 deletions

View File

@ -119,7 +119,13 @@ if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
?>
<br class="clear" />
<?php if ($post_ID): ?>
<?php printf(__('Last edit: %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?>
<?php if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
$last_user = get_userdata($last_id);
printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
} else {
printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
}
?>
<br class="clear" />
<?php endif; ?>
<span id="autosave"></span>