From fabf50d8425ceed59b33140ef52698ea3d675649 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 29 Oct 2008 06:00:22 +0000 Subject: [PATCH] Numerous Publish postbox tweaks, fixes, and flourishes. Still WIP git-svn-id: https://develop.svn.wordpress.org/trunk@9394 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-advanced.php | 45 +++++++++++++++++---------------- wp-admin/wp-admin.css | 41 +++++++++++++++++++++--------- 2 files changed, 52 insertions(+), 34 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index c7df2df14d..16c0ff7ef5 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -70,47 +70,50 @@ function post_submit_meta_box($post) { ?>
- -
+ + +
+ +
+
ID), true); ?> tabindex="4" />
- +
ID ) { if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date - $stamp = __('Scheduled for: %1$s at %2$s'); + $stamp = __('Scheduled for:
%1$s'); } else if ( 'publish' == $post->post_status ) { // already published - $stamp = __('Published on: %1$s at %2$s'); + $stamp = __('Published on:
%1$s'); } else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified $stamp = __('Publish immediately'); } else { // draft, 1 or more saves, date specified - $stamp = __('Publish on: %1$s at %2$s'); + $stamp = __('Publish on:
%1$s'); } - $date = mysql2date(get_option('date_format'), $post->post_date); - $time = mysql2date(get_option('time_format'), $post->post_date); + $date = date_i18n( $datef, strtotime( $post->post_date ) ); } else { // draft (no saves, and thus no date specified) $stamp = __('Publish immediately'); - $date = mysql2date(get_option('date_format'), current_time('mysql')); - $time = mysql2date(get_option('time_format'), current_time('mysql')); + $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); } ?>
- +  
- + post_status ) { case 'publish': @@ -128,7 +131,7 @@ switch ( $post->post_status ) { break; } ?> - + post_status || 'private' == $post->post_status ) { ?> @@ -167,12 +170,10 @@ if ( $can_publish OR ( $post->post_status == 'publish' AND current_user_can('edi
-post_status || 'private' == $post->post_status ) - $savebtn = attribute_escape( __('Update Post') ); -else - $savebtn = attribute_escape( __('Save Draft') ); -?> - + +post_status && 'private' != $post->post_status ) { ?> + + post_status ) { ?> @@ -182,7 +183,6 @@ else
-
@@ -201,12 +201,13 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post-> + +
-
-
+