WordPress.org

Make WordPress Core

Ticket #17028: patch.diff

File patch.diff, 2.4 KB (added by trewelu, 7 years ago)
  • wp-admin/edit-form-advanced.php

     
    451451<?php wp_editor($post->post_content, 'content', array('dfw' => true, 'tabfocus_elements' => 'insert-media-button,save-post', 'editor_height' => 360) ); ?>
    452452
    453453<table id="post-status-info" cellspacing="0"><tbody><tr>
    454         <td id="wp-word-count"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td>
    455         <td class="autosave-info">
    456         <span class="autosave-message">&nbsp;</span>
    457 <?php
    458         if ( 'auto-draft' != $post->post_status ) {
    459                 echo '<span id="last-edit">';
    460                 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
    461                         $last_user = get_userdata($last_id);
    462                         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));
    463                 } else {
    464                         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));
    465                 }
    466                 echo '</span>';
    467         } ?>
    468         </td>
     454        <td id="wp-word-count" colspan="2"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td>
    469455</tr></tbody></table>
    470456
    471457</div>
  • wp-admin/includes/meta-boxes.php

     
    103103</div>
    104104
    105105<?php } ?>
     106<div class="autosave-message"></div>
     107<div>
     108<?php
     109        if ( 'auto-draft' != $post->post_status ) {
     110                echo '<span id="last-edit">';
     111                if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
     112                        $last_user = get_userdata($last_id);
     113                        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));
     114                } else {
     115                        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));
     116                }
     117                echo '</span>';
     118} ?>
     119</div>
    106120</div><!-- .misc-pub-section -->
    107121
    108122<div class="misc-pub-section" id="visibility">