Making WordPress.org

Changeset 4803


Ignore:
Timestamp:
01/26/2017 11:29:43 PM (9 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.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp
Files:
2 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    }
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php

    r4254 r4803  
    222222            'wcpt-scheduled',
    223223            'wcpt-closed',
    224 
    225             // back-compat
    226             'public',
    227             // todo this should be 'publish'?
    228224        );
    229225    }
     
    242238            'wcpt-needs-fill-list',
    243239            'wcpt-needs-schedule',
    244 
    245             // back-compat
    246             'pending',
    247240        );
    248241    }
Note: See TracChangeset for help on using the changeset viewer.