Making WordPress.org


Ignore:
Timestamp:
05/01/2017 11:00:53 AM (7 years ago)
Author:
ocean90
Message:

Plugin Directory: Update a scheduled job if another i18n import is triggered during the 15 minutes timeframe.

File:
1 edited

Legend:

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

    r5449 r5453  
    1515        // To avoid a situation where two imports run concurrently, if one is already scheduled, run it 1hr later (We'll trigger it after the current one finishes).
    1616        $when_to_run = time();
    17         if ( $next_scheuled = Manager::get_scheduled_time( "import_plugin:{$plugin_slug}", 'last' ) ) {
    18             $when_to_run = $next_scheuled + HOUR_IN_SECONDS;
     17        if ( $next_scheduled = Manager::get_scheduled_time( "import_plugin:{$plugin_slug}", 'last' ) ) {
     18            $when_to_run = $next_scheduled + HOUR_IN_SECONDS;
    1919        }
    2020
Note: See TracChangeset for help on using the changeset viewer.