diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 6882e35b1e..4e5d0af183 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -780,10 +780,6 @@ table.diff .diff-addedline ins { color: #CFEBF6; } -.submitbox .submitdelete { - color: #fff; -} - #edit-settings-wrap, #show-settings { background-color: #14568A; diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index 2424c0685b..59ee0cd13c 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -769,10 +769,6 @@ table.diff .diff-addedline ins { border-top-color: #e4f2fd; } -.submitbox .submitdelete { - color: #fff; -} - #edit-settings-wrap, #show-settings { background-color: #E4F2FD; diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 771a4d98e2..6f84a14408 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -63,12 +63,14 @@ if ( 0 == $post_ID ) { function post_submit_meta_box($post) { global $action; + + $can_publish = current_user_can('publish_posts'); ?>
-

+

post_status ) { @@ -88,17 +90,17 @@ switch ( $post->post_status ) { } ?> - -

+post_status || 'private' == $post->post_status ) { ?> + -

+

+ +
-

- - -

- - + + +
+
+ + +
+ +post_status ) { ?> +
+ + + + + +
ID), true); ?> tabindex="4" />
+ + +ID) ) { ?> +
ID", 'delete-post_' . $post->ID); ?>" onclick="if ( confirm('post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )); ?>') ) {return true;}return false;">
+ + 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 at %2$s'); } else if ( 'publish' == $post->post_status ) { // already published - $stamp = __('Published on:
%1$s at %2$s'); + $stamp = __('Published on: %1$s at %2$s'); } else if ( '0000-00-00 00:00:00' == $post->post_date ) { // 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 at %2$s'); } $date = mysql2date(get_option('date_format'), $post->post_date); $time = mysql2date(get_option('time_format'), $post->post_date); @@ -132,33 +151,32 @@ if ( 0 != $post->ID ) { $time = mysql2date(get_option('time_format'), current_time('mysql')); } ?> - -

+ +
-
+

- +post_status || 'private' == $post->post_status ) + $savebtn = attribute_escape( __('Save') ); +else + $savebtn = attribute_escape( __('Save Draft') ); +?> + post_status ) { ?> - + ID) ) - echo "ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . ""; -?> -
-post_status, array('publish', 'future') ) || 0 == $post->ID ) { -?> +if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { ?> @@ -166,21 +184,10 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post-> - -

+
+ to_ping) ) .'" />'; + $form_trackback = 'to_ping) ) .'" />'; if ('' != $post->pinged) { $pings = '

'. __('Already pinged:') . '