Fix issue static call to non static function

This commit is contained in:
Brian Miyaji
2014-03-28 20:34:08 +11:00
parent 2210e6a086
commit 50ccef6e62

View File

@@ -22,7 +22,7 @@ class SP_Post_types {
public function __construct() { public function __construct() {
add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 5 ); add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 5 );
add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 ); add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 );
add_filter( 'the_posts', array( __CLASS__, 'display_scheduled_events' ) ); add_filter( 'the_posts', array( $this, 'display_scheduled_events' ) );
} }
/** /**