Making WordPress.org

Changeset 5512

Timestamp:
05/24/2017 10:50:47 PM (7 years ago)
Author:
coreymckrill
Message:

WordCamp: Add organizer reminder trigger for pre-planning status

Fixes #2346
Props nvwd

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

    r5421 r5512  
    745745        }
    746746
    747         if ( $old_status == 'wcpt-pre-planning' && $new_status == 'wcpt-pre-planning' ) {
    748             // todo - bug: this won't ever run b/c of the early return above.
    749             // what commit made this mistake, and why?
    750             // what things are tied to this that haven't been running?
    751             do_action( 'wcpt_added_to_planning_schedule', $post );
     747        if ( 'wcpt-pre-planning' == $new_status ) {
     748            do_action( 'wcpt_approved_for_pre_planning', $post );
    752749        } elseif ( $old_status == 'wcpt-needs-schedule' && $new_status == 'wcpt-scheduled' ) {
    753750            do_action( 'wcpt_added_to_final_schedule', $post );
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php

    r5356 r5512  
    1313    public function __construct() {
    1414        $this->triggers = array(
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
    1527            'wcor_added_to_pending_schedule' => array(
    1628                'name'     => 'WordCamp added to pending schedule',
     
    629641
    630642    /**
     643
     644
     645
     646
     647
     648
     649
     650
     651
     652
     653
    631654     * Sends e-mails hooked to the wcor_added_to_pending_schedule trigger.
    632655     *
Note: See TracChangeset for help on using the changeset viewer.