Fix "Error in moving to Trash" when deleting configuration columns

This commit is contained in:
Nabil Kadimi
2020-03-02 15:00:37 +01:00
committed by GitHub
parent bc609c245f
commit 7cb923dd55

View File

@@ -22,7 +22,7 @@ class SP_Post_types {
public function __construct() { public function __construct() {
add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 ); add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 );
add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 10 ); 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' ) ); add_filter( 'the_posts', array( $this, 'display_scheduled_events' ) );
} }