Merge pull request #377 from kadimi/patch-31
Fix "Error in moving to Trash" when deleting configuration columns
This commit is contained in:
@@ -22,7 +22,7 @@ class SP_Post_types {
|
||||
public function __construct() {
|
||||
add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 );
|
||||
add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 10 );
|
||||
add_action( 'wp_trash_post', array( $this, 'delete_config_post' ) );
|
||||
add_action( 'trashed_post', array( $this, 'delete_config_post' ) );
|
||||
add_filter( 'the_posts', array( $this, 'display_scheduled_events' ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user