Making WordPress.org

Changeset 762


Ignore:
Timestamp:
07/26/2014 04:55:58 AM (11 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Don't show error when published posts are updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r761 r762  
    492492            }
    493493
    494             if ( 'publish' == $post_data['post_status'] && 'pending' != $previous_post_status ) {
     494            if ( 'publish' == $post_data['post_status'] && ! in_array( $previous_post_status, array( 'pending', 'publish' ) ) ) {
    495495                $this->active_admin_notices[] = 2;
    496496                $post_data['post_status'] = $previous_post_status;
Note: See TracChangeset for help on using the changeset viewer.