From ec48de8dfd838d43bd75a7cf02b9e8f3e1f87aa5 Mon Sep 17 00:00:00 2001
From: Mohammad Jangda <batmoo@gmail.com>
Date: Wed, 3 Apr 2013 18:50:05 -0400
Subject: [PATCH] We're passing in a method, not a function.

---
 includes/class-wp-push-syndication-server.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php
index 49f82f4..a1f9b19 100644
--- a/includes/class-wp-push-syndication-server.php
+++ b/includes/class-wp-push-syndication-server.php
@@ -1208,7 +1208,7 @@ class WP_Push_Syndication_Server {
 		}
 
 		// Order by last update date
-		usort( $sites, 'sort_sites_by_last_pull_date' );
+		usort( $sites, array( $this, 'sort_sites_by_last_pull_date' ) );
 
 		return $sites;
 	}
-- 
GitLab