Permalink
Browse files

A post should always be permitted to return to moderation status, reg…

  • Loading branch information...
1 parent f493bfc commit 5d6e7933e8f3cca5c5cc901db46a07d8fdf7b81c @danielbachhuber committed Feb 7, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 wp-admin/includes/meta-boxes.php
View
3 wp-admin/includes/meta-boxes.php
@@ -70,8 +70,7 @@ function post_submit_meta_box($post) {
$dropdown_statuses[] = $post_status;
// A post in moderation can be changed to other moderation stati, regardless of publish caps
- if ( $post_status->moderation )
- $dropdown_statuses = array_merge( $dropdown_statuses, get_post_stati( array( 'moderation' => true, 'post_type' => $post->post_type ), 'objects' ) );
+ $dropdown_statuses = array_merge( $dropdown_statuses, get_post_stati( array( 'moderation' => true, 'post_type' => $post->post_type ), 'objects' ) );
if ( ! empty( $dropdown_statuses ) && ! $post_status->private ) : ?>
<a href="#post_status" class="edit-post-status hide-if-no-js"><?php _e('Edit') ?></a>

0 comments on commit 5d6e793

Please sign in to comment.