Making WordPress.org

Changeset 14150


Ignore:
Timestamp:
10/28/2024 07:33:28 AM (6 months ago)
Author:
dd32
Message:

Plugin Directory: Mark the Translation project as inactive when we close a plugin from this bulk-process-bounced-emails script.

See #7813.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/bounced-emails.php

    r13107 r14150  
    44use WordPressdotorg\Plugin_Directory\Tools;
    55use WordPressdotorg\Plugin_Directory\Admin\Metabox\Author_Notice;
     6use WordPressdotorg\Plugin_Directory\Admin\Status_Transitions;
    67
    78use WordPressdotorg\MU_Plugins\Utilities\HelpScout; // NOTE: NOT the same as the HelpScout class in this plugin.
     
    385386    update_post_meta( $plugin->ID, 'plugin_closed_date', current_time( 'mysql' ) );
    386387
     388    // Set the translation project to inactive.
     389    Status_Transitions::set_translation_status( $plugin, 'inactive' );
     390
    387391    // Change status.
    388392    wp_update_post( [
Note: See TracChangeset for help on using the changeset viewer.