Making WordPress.org


Ignore:
Timestamp:
04/12/2024 03:58:20 AM (10 months ago)
Author:
dd32
Message:

Plugin Directory: Allow reviewers to move a plugin from pending (Pending developer feedback) back to new (Pending initial review), and from rejected back to pending (Pending developer feedback)

Fixes #7386.

File:
1 edited

Legend:

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

    r13199 r13507  
    6666                $label = __( 'Close', 'wporg-plugins' );
    6767                break;
     68            case 'new':
     69                $label = __( 'Mark as Pending Initial Review', 'wporg-plugins' );
     70                break;
    6871            case 'pending':
    6972            default:
     
    8992
    9093        if ( current_user_can( 'plugin_approve', $post ) ) {
    91             $statuses = Status_Transitions::get_allowed_transitions( $post->post_status );
     94            $statuses = Status_Transitions::get_allowed_transitions( $post->post_status, $post );
    9295        }
    9396
     
    141144                if ( 'pending' === $status && ! $post->assigned_reviewer ) {
    142145                    printf(
    143                         '<p class="pending-assign"><button onclick="%s" type="submit" name="post_status" value="%s" class="button set-plugin-status button-primary">%s</button></p>',
    144                         esc_attr( "document.getElementById('assigned_reviewer').value = userSettings.uid" ),
     146                        '<p class="pending-assign"><button type="submit" name="post_status" value="%s" class="button set-plugin-status pending-and-assign button-primary">%s</button></p>',
    145147                        esc_attr( $status ),
    146148                        esc_attr__( 'Mark as Pending & Assign Review', 'wporg-plugins' ),
Note: See TracChangeset for help on using the changeset viewer.