WordPress.org

Make WordPress Core

Ticket #15498: 15498.diff

File 15498.diff, 906 bytes (added by duck_, 23 months ago)
  • wp-admin/edit-form-advanced.php

     
    321321<?php 
    322322        if ( 'auto-draft' != $post->post_status ) { 
    323323                echo '<span id="last-edit">'; 
    324                 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 
    325                         $last_user = get_userdata($last_id); 
     324                if ( $last_user = get_userdata( get_post_meta($post_ID, '_edit_last', true) ) ) { 
    326325                        printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 
    327326                } else { 
    328327                        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));