From 50ccef6e6231d22bbc3065ecffef5233e8a71e1d Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 28 Mar 2014 20:34:08 +1100 Subject: [PATCH] Fix issue static call to non static function --- includes/class-sp-post-types.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-post-types.php b/includes/class-sp-post-types.php index abccd29d..e8ba2a17 100644 --- a/includes/class-sp-post-types.php +++ b/includes/class-sp-post-types.php @@ -22,7 +22,7 @@ class SP_Post_types { public function __construct() { add_action( 'init', array( __CLASS__, 'register_taxonomies' ), 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' ) ); } /**