Changeset 12597
- Timestamp:
- 05/19/2023 06:05:17 AM (17 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
r9591 r12597 54 54 $label = __( 'Reject', 'wporg-plugins' ); 55 55 break; 56 case 'pending':57 $label = __( 'Mark as Pending', 'wporg-plugins' );58 break;59 56 case 'publish': 60 57 $label = __( 'Open', 'wporg-plugins' ); … … 66 63 $label = __( 'Close', 'wporg-plugins' ); 67 64 break; 65 case 'pending': 68 66 default: 69 67 $label = __( 'Mark as Pending', 'wporg-plugins' ); … … 137 135 <?php endif; ?> 138 136 139 <?php foreach ( $statuses as $status ) : ?> 137 <?php foreach ( $statuses as $status ) { 138 echo '<p>'; 140 139 141 <p><button type="submit" name="post_status" value="<?php echo esc_attr( $status ); ?>" class="button set-plugin-status"> 142 <?php echo self::get_status_button_label( $status ); ?> 143 </button></p> 140 if ( 'pending' === $status && ! $post->assigned_reviewer ) { 141 printf( 142 '<p class="pending-assign"><button onclick="%s" type="submit" name="post_status" value="%s" class="button set-plugin-status button-primary">%s</button></p>', 143 esc_attr( "document.getElementById('assigned_reviewer').value = userSettings.uid" ), 144 esc_attr( $status ), 145 esc_attr__( 'Mark as Pending & Assign Review', 'wporg-plugins' ), 146 ); 147 } 144 148 145 <?php endforeach; ?> 149 printf( 150 '<button type="submit" name="post_status" value="%s" class="button set-plugin-status">%s</button>', 151 esc_attr( $status ), 152 self::get_status_button_label( $status ) 153 ); 154 155 echo '</p>'; 156 157 } ?> 146 158 </div><!-- .misc-pub-section --> 147 159 <?php
Note: See TracChangeset
for help on using the changeset viewer.