Making WordPress.org


Ignore:
Timestamp:
04/11/2017 06:37:04 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Introduce the 'new' post_status to replace 'draft', this will allow a better more well-defined statuses for plugins.

See #2716

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php

    r4212 r5318  
    4141        }
    4242
    43         $statuses = array( 'draft', 'pending' );
     43        $statuses = array( 'new', 'pending' );
    4444        if ( current_user_can( 'plugin_approve', $post ) ) {
    45             if ( in_array( $post->post_status, array( 'draft', 'pending', 'rejected', 'approved' ) ) ) {
     45            if ( in_array( $post->post_status, array( 'new', 'draft', 'pending', 'rejected', 'approved' ) ) ) {
    4646                $statuses = array_merge( $statuses, array( 'approved', 'rejected' ) );
    4747            } else {
    48                 $statuses = array( 'publish', 'disabled', 'closed' );
     48                $statuses = array( 'publish', 'disabled', 'closed', 'pending' );
    4949            }
    5050        }
Note: See TracChangeset for help on using the changeset viewer.