Check if SP function exists to avoid conflict
This commit is contained in:
@@ -395,6 +395,8 @@ final class SportsPress {
|
|||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
if ( ! function_exists( 'SP' ) ):
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the main instance of SP to prevent the need to use globals.
|
* Returns the main instance of SP to prevent the need to use globals.
|
||||||
*
|
*
|
||||||
@@ -406,3 +408,5 @@ function SP() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SP();
|
SP();
|
||||||
|
|
||||||
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user