From 5110346ce26c9b9b92a695fb323e467a3913df74 Mon Sep 17 00:00:00 2001 From: Peter Molnar Date: Fri, 5 Feb 2016 13:33:31 +0000 Subject: [PATCH] fixing non-static method WARN; reorganizing action priority to avoid collisions --- sender.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sender.php b/sender.php index 42db60f..7fde448 100644 --- a/sender.php +++ b/sender.php @@ -57,7 +57,7 @@ class WP_Webmention_Again_Sender extends WP_Webmention_Again { add_action( static::cron, array( &$this, 'process' ) ); // register new posts - add_action( 'transition_post_status', array( &$this, 'queue' ), 12, 5 ); + add_action( 'transition_post_status', array( &$this, 'queue' ), 98, 5 ); } @@ -111,7 +111,7 @@ class WP_Webmention_Again_Sender extends WP_Webmention_Again { * @param string $old_status Previous post status * @param object $post WP Post object */ - public function queue( $new_status, $old_status, $post ) { + public static function queue( $new_status, $old_status, $post ) { if ( ! static::is_post( $post ) ) { static::debug( "Whoops, this is not a post." );