Making WordPress.org

Changeset 986


Ignore:
Timestamp:
11/12/2014 10:33:09 PM (11 years ago)
Author:
iandunn
Message:

wp_insert_post_data callbacks should be registered as filters, not actions.

File:
1 edited

Legend:

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

    r967 r986  
    4545        add_action( 'wcpt_added_to_planning_schedule',                array( $this, 'add_organizer_to_central' ), 10 );
    4646        add_action( 'wcpt_added_to_planning_schedule',                array( $this, 'mark_date_added_to_planning_schedule' ), 10 );
    47         add_action( 'wp_insert_post_data',                            array( $this, 'enforce_post_status_progression' ), 10, 2 );
    48         add_action( 'wp_insert_post_data',                            array( $this, 'require_complete_meta_to_publish_wordcamp' ), 10, 2 );
     47        add_filter( 'wp_insert_post_data',                            array( $this, 'enforce_post_status_progression' ), 10, 2 );
     48        add_filter( 'wp_insert_post_data',                            array( $this, 'require_complete_meta_to_publish_wordcamp' ), 10, 2 );
    4949
    5050        // Admin notices
Note: See TracChangeset for help on using the changeset viewer.