Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-i18n-import.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-i18n-import.php
r5488 r6287 17 17 */ 18 18 public static function queue( $plugin_slug, $plugin_data ) { 19 $when_to_run = time() + 15 * MINUTE_IN_SECONDS;19 $when_to_run = time() + 15 * MINUTE_IN_SECONDS; 20 20 $next_scheduled = Manager::get_scheduled_time( "import_plugin_i18n:{$plugin_slug}", 'last' ); 21 21 22 22 // Update a scheduled event if it doesn't run in the next minute. 23 23 if ( $next_scheduled && $next_scheduled > time() + 1 * MINUTE_IN_SECONDS ) { 24 $next_scheduled_events = Manager::get_scheduled_events( "import_plugin_i18n:{$plugin_slug}", $next_scheduled );24 $next_scheduled_events = Manager::get_scheduled_events( "import_plugin_i18n:{$plugin_slug}", $next_scheduled ); 25 25 if ( $next_scheduled_events ) { 26 26 $next_scheduled_event = array_shift( $next_scheduled_events ); … … 59 59 "import_plugin_i18n:{$plugin_slug}", 60 60 array( 61 array_merge( array( 'plugin' => $plugin_slug ), $plugin_data ) 61 array_merge( array( 'plugin' => $plugin_slug ), $plugin_data ), 62 62 ) 63 63 ); … … 99 99 * 100 100 * @param string $plugin_slug 101 * @param array $i18n_processes101 * @param array $i18n_processes 102 102 */ 103 103 public static function process_i18n_for_plugin( $plugin_slug, $i18n_processes ) {
Note: See TracChangeset
for help on using the changeset viewer.