Making WordPress.org


Ignore:
Timestamp:
06/29/2023 04:09:57 AM (10 months ago)
Author:
dd32
Message:

Plugin Directory: Automatically move plugins from a Disabled state to a Closed state after 12 months.

Fixes #7087.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-manager.php

    r12175 r12681  
    2525        add_action( 'plugin_directory_translation_sync', array( __NAMESPACE__ . '\Translation_Sync', 'cron_trigger' ) );
    2626        add_action( 'plugin_directory_zip_cleanup', array( __NAMESPACE__ . '\Zip_Cleanup', 'cron_trigger' ) );
     27        add_action( 'plugin_directory_daily_post_checks', array( __NAMESPACE__ . '\Daily_Post_Checks', 'cron_trigger' ) );
    2728
    2829        // A cronjob to check cronjobs
     
    263264            wp_schedule_event( time() + 60, 'daily', 'plugin_directory_zip_cleanup' );
    264265        }
     266        if ( ! wp_next_scheduled ( 'plugin_directory_daily_post_checks' ) ) {
     267            wp_schedule_event( time() + 60, 'daily', 'plugin_directory_daily_post_checks' );
     268        }
    265269
    266270        // Check to see if `WP_CORE_LATEST_RELEASE` has changed since we last ran.
Note: See TracChangeset for help on using the changeset viewer.