Sync "Last edited" on Edit Page screen to that on Edit Post screen. see #6250
git-svn-id: https://develop.svn.wordpress.org/trunk@7342 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ecbc4d48f1
commit
3600770b75
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user