diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 6873844079..4fddd09822 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -104,7 +104,7 @@ if ( 'publish' == $post->post_status ) {
- + post_status ) { case 'private': @@ -124,7 +124,7 @@ switch ( $post->post_status ) { break; } ?> - + post_status || 'private' == $post->post_status || $can_publish ) { ?> post_status ) { ?>style="display:none;" class="edit-post-status hide-if-no-js" tabindex='4'> @@ -149,7 +149,7 @@ switch ( $post->post_status ) {
- post_status ) { $post->post_password = ''; @@ -166,7 +166,7 @@ if ( 'private' == $post->post_status ) { $visibility_trans = __('Public'); } -?> +?>
@@ -210,8 +210,8 @@ if ( 0 != $post->ID ) { $stamp = __('Publish immediately'); $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); } -?> - + +if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
@@ -235,23 +235,25 @@ if ( ( 'edit' == $action ) && current_user_can('delete_post', $post->ID) ) { ?>
post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?> - - post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> +if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { + if ( current_user_can('publish_posts') ) : + if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> - + - - - - - - - - - + + + + + + +
@@ -317,13 +319,13 @@ function post_categories_meta_box($post) {
    - ID, false, false, $popular_ids) ?> +ID, false, false, $popular_ids) ?>
@@ -331,12 +333,11 @@ function post_categories_meta_box($post) {

- - 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> - - - -

+ + 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> + + +

-

- -

+

@@ -419,8 +418,7 @@ function post_custom_meta_box($post) { ID); list_meta($metadata); -meta_form(); -?> +meta_form(); ?>

use in your theme.'); ?>


- -

+

- - + - - - - + + +

post_type) ?>" /> -post_status ) wp_original_referer_field(true, 'previous'); ?> +post_status ) + wp_original_referer_field(true, 'previous'); - +echo $form_extra ?>
-
@@ -601,14 +595,17 @@ else
-ID); ?> -post_status && !current_user_can( 'publish_posts' ) ) ) { ?> +ID); +if ( !( 'pending' == $post->post_status && !current_user_can( 'publish_posts' ) ) ) { ?>
-ID) && ! empty($sample_permalink_html) ) : - echo $sample_permalink_html; +ID) && ! empty($sample_permalink_html) ) : + echo $sample_permalink_html; endif; ?>
- +
@@ -630,17 +627,16 @@ endif; ?> printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); } echo ''; - } -?> + } ?> - - - - - - +
+do_action('dbx_post_sidebar'); ?>
diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 728fb5add6..4960f56ca9 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -98,7 +98,7 @@ if ( 'publish' == $post->post_status ) {
- + post_status ) { case 'private': @@ -118,7 +118,7 @@ switch ( $post->post_status ) { break; } ?> - + post_status || 'private' == $post->post_status || $can_publish ) { ?> post_status ) { ?>style="display:none;" class="edit-post-status hide-if-no-js" tabindex='4'> @@ -144,7 +144,7 @@ switch ( $post->post_status ) {
- post_status ) { $post->post_password = ''; @@ -158,22 +158,21 @@ if ( 'private' == $post->post_status ) { $visibility_trans = __('Public'); } -?> +echo wp_specialchars( $visibility_trans ); ?> + +
- />
/>

/>
-

- - -

+

+

@@ -199,15 +198,14 @@ if ( 0 != $post->ID ) { $stamp = __('Publish immediately'); $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); } -?> - + +if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
- - +
-
- +
@@ -225,22 +223,25 @@ if ( ( 'edit' == $action ) && current_user_can('delete_page', $post->ID) ) { ?>
post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?> - - post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> +post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> - + - - + - - + - +
@@ -280,8 +281,7 @@ function page_attributes_meta_box($post){ $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>

+ if ( 0 != count( get_page_templates() ) ) { ?>

+ } ?>

@@ -309,11 +308,10 @@ function page_custom_meta_box($post){ ?>
ID); -list_meta($metadata); -meta_form(); -?> -
+ $metadata = has_meta($post->ID); + list_meta($metadata); + meta_form(); ?> +

use in your theme.'); ?>

">
- +$side_meta_boxes = do_meta_boxes('page', 'side', $post); ?>
@@ -475,19 +469,18 @@ endif; ?> - - - - - +
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 1048699188..b5672ee742 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -309,6 +309,11 @@ form p.submit a.cancel:hover { margin-left: 18px; } +#post-status-display, +#post-visibility-display { + font-weight: bold; +} + .side-info { margin: 0; padding: 4px;