Changeset 13507 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
- Timestamp:
- 04/12/2024 03:58:20 AM (10 months ago)
- 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 66 66 $label = __( 'Close', 'wporg-plugins' ); 67 67 break; 68 case 'new': 69 $label = __( 'Mark as Pending Initial Review', 'wporg-plugins' ); 70 break; 68 71 case 'pending': 69 72 default: … … 89 92 90 93 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 ); 92 95 } 93 96 … … 141 144 if ( 'pending' === $status && ! $post->assigned_reviewer ) { 142 145 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>', 145 147 esc_attr( $status ), 146 148 esc_attr__( 'Mark as Pending & Assign Review', 'wporg-plugins' ),
Note: See TracChangeset
for help on using the changeset viewer.