Changeset 12846 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
- Timestamp:
- 08/17/2023 05:16:41 AM (21 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
r12594 r12846 9 9 use WordPressdotorg\Plugin_Directory\Email\Plugin_Rejected as Plugin_Rejected_Email; 10 10 use WordPressdotorg\Plugin_Directory\Admin\Metabox\Reviewer as Reviewer_Metabox; 11 use WordPressdotorg\Plugin_Directory\Jobs\API_Update_Updater; 12 use WordPressdotorg\Plugin_Directory\Standalone\Plugins_Info_API; 11 13 12 14 /** … … 164 166 update_post_meta( $post->ID, "_{$new_status}", strtotime( $post->post_modified_gmt ) ); 165 167 } 168 169 // Clear any relevant caches. 170 $this->flush_caches( $post ); 166 171 } 167 172 … … 377 382 Reviewer_Metabox::set_reviewer( $post, false, false ); 378 383 } 384 385 /** 386 * Flush the caches for the plugin. 387 */ 388 protected function flush_caches( $post ) { 389 // Update the API endpoints with the new data 390 API_Update_Updater::update_single_plugin( $post->post_name ); 391 Plugins_Info_API::flush_plugin_information_cache( $post->post_name ); 392 } 379 393 }
Note: See TracChangeset
for help on using the changeset viewer.