Making WordPress.org


Ignore:
Timestamp:
12/13/2016 09:44:54 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: Shift SVN Watching, Plugin Imports, and Plugin i18n imports to Jobs.

See #2330.

File:
1 edited

Legend:

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

    r4484 r4520  
    4343
    4444        // Cron tasks.
    45         add_action( 'admin_init', array( $this, 'register_cron_tasks' ) );
    46         add_action( 'plugin_directory_meta_sync', array( __NAMESPACE__ . '\Jobs\Meta_Sync', 'cron_trigger' ) );
     45        new Jobs\Manager();
    4746
    4847        // oEmbed whitlisting.
     
    466465                require_once( __DIR__ . '/libs/site-search/jetpack-search.php' );
    467466                \Jetpack_Search::instance();
    468         }
    469 
    470     }
    471 
    472     /**
    473      * Queue all of our cron tasks.
    474      */
    475     function register_cron_tasks() {
    476         if ( ! wp_next_scheduled ( 'plugin_directory_meta_sync' ) ) {
    477             wp_schedule_event( time(), 'hourly', 'plugin_directory_meta_sync' );
    478467        }
    479468    }
Note: See TracChangeset for help on using the changeset viewer.