Changeset 9402 for trunk/wp-admin/includes/template.php
- Timestamp:
- 10/29/2008 07:22:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r9399 r9402 2237 2237 $ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj ); 2238 2238 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 2239 2245 $month = "<select " . ( $multi ? '' : 'id="mm" ' ) . "name=\"mm\"$tab_index_attribute>\n"; 2240 2246 for ( $i = 1; $i < 13; $i = $i +1 ) { … … 2255 2261 2256 2262 echo "\n\n"; 2257 foreach ( array('mm', 'jj', 'aa', 'hh', 'mn') as $timeunit ) 2263 foreach ( array('mm', 'jj', 'aa', 'hh', 'mn') as $timeunit ) { 2258 2264 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 } 2259 2268 ?> 2260 2269
Note: See TracChangeset
for help on using the changeset viewer.