From e3396a2c2d6a0445bee70e2de7158fe3ccbd2672 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 24 Jul 2014 01:10:39 +1000 Subject: [PATCH] Check if SP function exists to avoid conflict --- sportspress.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sportspress.php b/sportspress.php index d7ef24d8..ede1bfa6 100644 --- a/sportspress.php +++ b/sportspress.php @@ -395,6 +395,8 @@ final class SportsPress { endif; +if ( ! function_exists( 'SP' ) ): + /** * Returns the main instance of SP to prevent the need to use globals. * @@ -406,3 +408,5 @@ function SP() { } SP(); + +endif;