Making WordPress.org

Changeset 2844


Ignore:
Timestamp:
03/29/2016 02:49:54 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp Post Type: Update statuses on WordCamp transitions e-mail triggers.

File:
1 edited

Legend:

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

    r2841 r2844  
    631631                }
    632632
     633                if ( $new_status == $old_status ) {
     634                        return;
     635                }
     636
     637                if ( $old_status == 'wcpt-pre-planning' && $new_status == 'wcpt-pre-planning' ) {
     638                        do_action( 'wcpt_added_to_planning_schedule', $post );
     639                } elseif ( $old_status == 'wcpt-needs-schedule' && $new_status == 'wcpt-scheduled' ) {
     640                        do_action( 'wcpt_added_to_final_schedule', $post );
     641                }
     642
     643                // back-compat for old statuses
    633644                if ( 'draft' == $old_status && 'pending' == $new_status ) {
    634645                        do_action( 'wcpt_added_to_planning_schedule', $post );
Note: See TracChangeset for help on using the changeset viewer.