Changeset 4520 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 12/13/2016 09:44:54 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r4484 r4520 43 43 44 44 // 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(); 47 46 48 47 // oEmbed whitlisting. … … 466 465 require_once( __DIR__ . '/libs/site-search/jetpack-search.php' ); 467 466 \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' );478 467 } 479 468 }
Note: See TracChangeset
for help on using the changeset viewer.