Making WordPress.org

Changeset 5513


Ignore:
Timestamp:
05/24/2017 11:42:00 PM (9 years ago)
Author:
coreymckrill
Message:

WordCamp: Remove non-functional organizer reminder trigger

This removes the wcpt_added_to_planning_schedule action hook (which
was logically unreachable) and associated triggers and callbacks in the
Organizer Reminders plugin. It switches the actions that were hooked to
it over to the new action hook that was created in r5512.

The expected consequence of this change is that some organizer reminder
emails that were previously not getting sent because they were using
unreachable triggers will now be sent again. This change has been vetted
by the Global Community Team.

Props coreymckrill

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r5512 r5513  
    4444        add_action( 'transition_post_status',                         array( $this, 'trigger_schedule_actions' ), 10, 3 );
    4545        add_action( 'transition_post_status',                         array( $this, 'log_status_changes'       ), 10, 3 );
    46         add_action( 'wcpt_added_to_planning_schedule',                array( $this, 'add_organizer_to_central' ), 10 );
    47         add_action( 'wcpt_added_to_planning_schedule',                array( $this, 'mark_date_added_to_planning_schedule' ), 10 );
     46        add_action( 'wcpt_approved_for_pre_planning',                 array( $this, 'add_organizer_to_central' ), 10 );
     47        add_action( 'wcpt_approved_for_pre_planning',                 array( $this, 'mark_date_added_to_planning_schedule' ), 10 );
    4848        add_filter( 'wp_insert_post_data',                            array( $this, 'enforce_post_status' ), 10, 2 );
    4949        add_filter( 'wp_insert_post_data',                            array( $this, 'require_complete_meta_to_publish_wordcamp' ), 11, 2 ); // after enforce_post_status
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php

    r5512 r5513  
    1919                        'name'       => 'wcpt_approved_for_pre_planning',
    2020                        'callback'   => 'send_trigger_approved_for_pre_planning',
    21                         'priority'   => 10,
    22                         'parameters' => 1,
    23                     ),
    24                 ),
    25             ),
    26 
    27             'wcor_added_to_pending_schedule' => array(
    28                 'name'     => 'WordCamp added to pending schedule',
    29                 'actions'  => array(
    30                     array(
    31                         'name'       => 'wcpt_added_to_planning_schedule',
    32                         'callback'   => 'send_trigger_added_to_pending_schedule',
    3321                        'priority'   => 10,
    3422                        'parameters' => 1,
     
    652640
    653641    /**
    654      * Sends e-mails hooked to the wcor_added_to_pending_schedule trigger.
    655      *
    656      * This fires when a WordCamp is added to the pending schedule.
    657      *
    658      * @param WP_Post $wordcamp
    659      */
    660     public function send_trigger_added_to_pending_schedule( $wordcamp ) {
    661         $this->send_triggered_emails( $wordcamp, 'wcor_added_to_pending_schedule' );
    662     }
    663 
    664     /**
    665642     * Sends e-mails hooked to the wcor_added_to_schedule trigger.
    666643     *
Note: See TracChangeset for help on using the changeset viewer.