Changeset 11897
- Timestamp:
- 09/01/2009 09:15:20 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
-
edit-form-advanced.php (modified) (1 diff)
-
edit-page-form.php (modified) (1 diff)
-
page.php (modified) (1 diff)
-
post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r11815 r11897 28 28 $messages[7] = __('Post saved.'); 29 29 $messages[8] = sprintf(__('Post submitted. <a href="%s">Preview post</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ); 30 // translators: Publish box date formt, see http://php.net/date - Same as in meta-boxes.php 31 $messages[9] = sprintf(__('Post scheduled for: <b>%1$s</b>. <a href="%2$s">Preview post</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), get_permalink($post_ID)); 30 32 31 33 if ( isset($_GET['revision']) ) -
trunk/wp-admin/edit-page-form.php
r11815 r11897 28 28 $messages[5] = sprintf(__('Page published. <a href="%s">View page</a>'), get_permalink($post_ID)); 29 29 $messages[6] = sprintf(__('Page submitted. <a href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ); 30 // translators: Publish box date formt, see http://php.net/date - Same as in meta-boxes.php 31 $messages[7] = sprintf(__('Page scheduled for: <b>%1$s</b>. <a href="%2$s">Preview post</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), get_permalink($post_ID)); 30 32 31 33 if ( isset($_GET['revision']) ) -
trunk/wp-admin/page.php
r11807 r11897 38 38 } elseif ( ( isset($_POST['save']) || isset($_POST['publish']) ) ) { 39 39 if ( isset( $_POST['publish'] ) ) { 40 if ( 'pending' == get_post_status( $page_ID ) ) 41 $location = add_query_arg( 'message', 6, get_edit_post_link( $page_ID, 'url' ) ); 42 else 43 $location = add_query_arg( 'message', 5, get_edit_post_link( $page_ID, 'url' ) ); 40 switch ( get_post_status( $page_ID ) ) { 41 case 'pending': 42 $location = add_query_arg( 'message', 6, get_edit_post_link( $page_ID, 'url' ) ); 43 break; 44 case 'future': 45 $location = add_query_arg( 'message', 7, get_edit_post_link( $page_ID, 'url' ) ); 46 break; 47 default: 48 $location = add_query_arg( 'message', 5, get_edit_post_link( $page_ID, 'url' ) ); 49 } 44 50 } else { 45 51 $location = add_query_arg( 'message', 1, get_edit_post_link( $page_ID, 'url' ) ); -
trunk/wp-admin/post.php
r11807 r11897 41 41 } elseif ( ( isset($_POST['save']) || isset($_POST['publish']) ) ) { 42 42 if ( isset( $_POST['publish'] ) ) { 43 if ( 'pending' == get_post_status( $post_ID ) ) 44 $location = add_query_arg( 'message', 8, get_edit_post_link( $post_ID, 'url' ) ); 45 else 46 $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); 43 switch ( get_post_status( $post_ID ) ) { 44 case 'pending': 45 $location = add_query_arg( 'message', 8, get_edit_post_link( $post_ID, 'url' ) ); 46 break; 47 case 'future': 48 $location = add_query_arg( 'message', 9, get_edit_post_link( $post_ID, 'url' ) ); 49 break; 50 default: 51 $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); 52 } 47 53 } else { 48 54 $location = add_query_arg( 'message', 1, get_edit_post_link( $post_ID, 'url' ) );
Note: See TracChangeset
for help on using the changeset viewer.