Making WordPress.org

Changeset 5448


Ignore:
Timestamp:
04/30/2017 07:08:29 PM (9 years ago)
Author:
ocean90
Message:

Plugin Directory: Enable i18n imports for code and readme strings.

File:
1 edited

Legend:

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

    r4670 r5448  
    11<?php
    22namespace WordPressdotorg\Plugin_Directory\Jobs;
     3
    34use WordPressdotorg\Plugin_Directory\Plugin_Directory;
    45use WordPressdotorg\Plugin_Directory\CLI;
     
    67
    78/**
    8  * Import plugin string changes into WordPress.
     9 * Import plugin string changes to translate.wordpress.org.
    910 *
    1011 * @package WordPressdotorg\Plugin_Directory\Jobs
     
    1516
    1617        /**
    17          * Queue the job 
     18         * Queue the job
    1819         */
    1920        public static function queue( $plugin_slug, $plugin_data ) {
    20                 if ( 'nothing-much' != $plugin_slug ) {
    21                         return;
    22                 }
    23 
    2421                // 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).
    25                 $when_to_run = time() + 15*MINUTE_IN_SECONDS;
     22                $when_to_run = time() + 15 * MINUTE_IN_SECONDS;
    2623                if ( $next_scheuled = Manager::get_scheduled_time( "import_plugin_i18n:{$plugin_slug}", 'last' ) ) {
    2724                        $when_to_run = $next_scheuled + HOUR_IN_SECONDS;
Note: See TracChangeset for help on using the changeset viewer.