WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2008 07:22:56 PM (12 years ago)
Author:
markjaquith
Message:

More work on Publish postbox. Post status tweaks, post date tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r9399 r9402  
    22372237    $ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj );
    22382238
     2239    $cur_jj = gmdate( 'd', $time_adj );
     2240    $cur_mm = gmdate( 'm', $time_adj );
     2241    $cur_aa = gmdate( 'Y', $time_adj );
     2242    $cur_hh = gmdate( 'H', $time_adj );
     2243    $cur_mn = gmdate( 'i', $time_adj );
     2244
    22392245    $month = "<select " . ( $multi ? '' : 'id="mm" ' ) . "name=\"mm\"$tab_index_attribute>\n";
    22402246    for ( $i = 1; $i < 13; $i = $i +1 ) {
     
    22552261
    22562262    echo "\n\n";
    2257     foreach ( array('mm', 'jj', 'aa', 'hh', 'mn') as $timeunit )
     2263    foreach ( array('mm', 'jj', 'aa', 'hh', 'mn') as $timeunit ) {
    22582264        echo '<input type="hidden" id="hidden_' . $timeunit . '" name="hidden_' . $timeunit . '" value="' . $$timeunit . '" />' . "\n";
     2265        $cur_timeunit = 'cur_' . $timeunit;
     2266        echo '<input type="hidden" id="'. $cur_timeunit . '" name="'. $cur_timeunit . '" value="' . $$cur_timeunit . '" />' . "\n";
     2267    }
    22592268?>
    22602269
Note: See TracChangeset for help on using the changeset viewer.