Changeset 12594 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
- Timestamp:
- 05/18/2023 03:26:43 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
r12517 r12594 8 8 use WordPressdotorg\Plugin_Directory\Email\Plugin_Approved as Plugin_Approved_Email; 9 9 use WordPressdotorg\Plugin_Directory\Email\Plugin_Rejected as Plugin_Rejected_Email; 10 use WordPressdotorg\Plugin_Directory\Admin\Metabox\Reviewer as Reviewer_Metabox; 10 11 11 12 /** … … 135 136 case 'approved': 136 137 $this->approved( $post->ID, $post ); 138 $this->clear_reviewer( $post ); 137 139 break; 138 140 139 141 case 'rejected': 140 142 $this->rejected( $post->ID, $post ); 143 $this->clear_reviewer( $post ); 141 144 break; 142 145 … … 144 147 $this->clean_closed_date( $post->ID ); 145 148 $this->set_translation_status( $post, 'active' ); 149 $this->clear_reviewer( $post ); 146 150 break; 147 151 … … 364 368 } 365 369 370 /** 371 * Clear the assigned reviewer. 372 * 373 * @param \WP_Post $post Post object. 374 */ 375 public function clear_reviewer( $post ) { 376 // Unset the reviewer, but don't log it, as the triggering status changes should've been logged in some form. 377 Reviewer_Metabox::set_reviewer( $post, false, false ); 378 } 366 379 }
Note: See TracChangeset
for help on using the changeset viewer.