Make WordPress Core


Ignore:
Timestamp:
03/14/2008 08:17:59 AM (19 years ago)
Author:
matt
Message:

Date display and editing tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r7266 r7285  
    9191                $stamp = __('Scheduled for:<br />%1$s at %2$s');
    9292        } else if ( 'publish' == $post->post_status ) {
    93                 $stamp = __('Published on:<br />%1$s at %2$s');
     93                $stamp = __('%1$s at %2$s');
    9494        } else {
    9595                $stamp = __('Saved on:<br />%1$s at %2$s');
    … …  
    9999        $time = mysql2date(get_option('time_format'), $post->post_date);
    100100} else {
    101         $stamp = __('Timestamp:<br />%1$s at %2$s');
     101        $stamp = __('%1$s at %2$s');
    102102        $date = mysql2date(get_option('date_format'), current_time('mysql'));
    103103        $time = mysql2date(get_option('time_format'), current_time('mysql'));
    104104}
    105105?>
    106 <p><?php printf($stamp, $date, $time); ?>
     106<p class="curtime"><?php printf($stamp, $date, $time); ?>
    107107&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
    108108
    … …  
    153153<h3><?php _e('Title') ?></h3>
    154154<div id="titlewrap">
    155   <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" />
     155  <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
    156156</div>
    157157<div class="inside">
Note: See TracChangeset for help on using the changeset viewer.