Changeset 7341
- Timestamp:
- 03/17/08 03:26:53 (6 months ago)
- Files:
-
- trunk/wp-admin/edit-page-form.php (modified) (1 diff)
- trunk/wp-admin/js/page.js (modified) (1 diff)
- trunk/wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/edit-page-form.php
r7340 r7341 77 77 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Keep this page private') ?></label></p> 78 78 <?php 79 80 79 if ($post_ID) { 81 82 if ( 'future' == $post->post_status ) { 80 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date 83 81 $stamp = __('Scheduled for:<br />%1$s at %2$s'); 84 } else if ( 'publish' == $post->post_status ) { 85 $stamp = __('%1$s at %2$s'); 86 } else { 87 $stamp = __('Saved on:<br />%1$s at %2$s'); 82 } else if ( 'publish' == $post->post_status ) { // already published 83 $stamp = __('Published on:<br />%1$s at %2$s'); 84 } else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified 85 $stamp = __('Publish immediately'); 86 } else { // draft, 1 or more saves, date specified 87 $stamp = __('Publish on:<br />%1$s at %2$s'); 88 88 } 89 90 89 $date = mysql2date(get_option('date_format'), $post->post_date); 91 90 $time = mysql2date(get_option('time_format'), $post->post_date); 92 } else { 93 $stamp = __(' %1$s at %2$s');91 } else { // draft (no saves, and thus no date specified) 92 $stamp = __('Publish immediately'); 94 93 $date = mysql2date(get_option('date_format'), current_time('mysql')); 95 94 $time = mysql2date(get_option('time_format'), current_time('mysql')); trunk/wp-admin/js/page.js
r7325 r7341 9 9 if (jQuery('#timestampdiv').is(":hidden")) { 10 10 jQuery('#timestampdiv').slideDown("normal"); 11 jQuery('.edit-timestamp').text(postL10n.cancel); 11 12 } else { 12 13 jQuery('#timestampdiv').hide(); 14 jQuery('#mm').val(jQuery('#hidden_mm').val()); 15 jQuery('#jj').val(jQuery('#hidden_jj').val()); 16 jQuery('#aa').val(jQuery('#hidden_aa').val()); 17 jQuery('#hh').val(jQuery('#hidden_hh').val()); 18 jQuery('#mn').val(jQuery('#hidden_mn').val()); 19 jQuery('.edit-timestamp').text(postL10n.edit); 13 20 } 14 21 return false; trunk/wp-includes/script-loader.php
r7338 r7341 152 152 ) ); 153 153 $this->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'postbox'), '20080208' ); 154 $this->localize( 'page', 'postL10n', array( 155 'cancel' => __('Cancel'), 156 'edit' => __('Edit'), 157 ) ); 154 158 $this->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '20080131' ); 155 159 $this->add( 'comment', '/wp-admin/js/comment.js', array('postbox'), '20080219' );
