WordPress.org

Making WordPress.org


Ignore:
Timestamp:
04/04/2017 04:59:12 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: SVN Watcher: Wait for 2 consequtive SVN failures to occur before throwing exceptions - a single network timeout is usually transitive.
This also switches cron tasks to be checked for / registered on init, to ensure that a failed recurring task (one which throws an exception) is re-registered in Cavalcade.

Fixes #2678

File:
1 edited

Legend:

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

    r4727 r5233  
    1111
    1212    /**
    13      * A static method for the cron trigger to fire.
     13     * Add all the actions for cron tasks and schedules.
    1414     */
    1515    public function __construct() {
    1616        // Register all the cron task handlers.
    17         add_action( 'admin_init', array( $this, 'register_cron_tasks' ) );
     17        add_action( 'init', array( $this, 'register_cron_tasks' ) );
    1818        add_filter( 'cron_schedules', array( $this, 'register_schedules' ) );
    1919
Note: See TracChangeset for help on using the changeset viewer.