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-form-advanced.php

    r7282 r7285  
    113113                $stamp = __('Scheduled for:<br />%1$s at %2$s');
    114114        } else if ( 'publish' == $post->post_status ) {
    115                 $stamp = __('Published on:<br />%1$s at %2$s');
     115                $stamp = __('%1$s at %2$s');
    116116        } else {
    117117                $stamp = __('Saved on:<br />%1$s at %2$s');
    … …  
    121121        $time = mysql2date(get_option('time_format'), $post->post_date);
    122122} else {
    123         $stamp = __('Timestamp:<br />%1$s at %2$s');
     123        $stamp = __('%1$s at %2$s');
    124124        $date = mysql2date(get_option('date_format'), current_time('mysql'));
    125125        $time = mysql2date(get_option('time_format'), current_time('mysql'));
    126126}
    127127?>
    128 <p><?php printf($stamp, $date, $time); ?>
     128<p class="curtime"><?php printf($stamp, $date, $time); ?>
    129129&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
    130130
    … …  
    178178<h3><?php _e('Title') ?></h3>
    179179<div id="titlewrap">
    180         <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" />
     180        <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" />
    181181</div>
    182182<div class="inside">
Note: See TracChangeset for help on using the changeset viewer.