Making WordPress.org


Ignore:
Timestamp:
01/26/2017 11:29:43 PM (10 years ago)
Author:
coreymckrill
Message:

WCPT: Remove unnecessary back-compat code for old post statuses

All wordcamp posts have now been migrated to the new statuses.

File:
1 edited

Legend:

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

    r4577 r4803  
    729729                }
    730730
    731                 // back-compat for old statuses
    732                 if ( 'draft' == $old_status && 'pending' == $new_status ) {
    733                         do_action( 'wcpt_added_to_planning_schedule', $post );
    734                 } elseif ( 'pending' == $old_status && 'publish' == $new_status ) {
    735                         do_action( 'wcpt_added_to_final_schedule', $post );
    736                 }
    737 
    738731                // todo add new triggers - which ones?
    739732        }
Note: See TracChangeset for help on using the changeset viewer.