WordPress.org

Making WordPress.org


Ignore:
Timestamp:
05/24/17 23:42:00 (8 months 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

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.