FIX: Use of undefined constant SP_PLUGIN_FILE
FIX: Use of undefined constant SP_PLUGIN_FILE - assumed 'SP_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
This commit is contained in:
@@ -23,6 +23,9 @@ if ( ! class_exists( 'SP_Install' ) ) :
|
||||
* Hook in tabs.
|
||||
*/
|
||||
public function __construct() {
|
||||
if ( ! defined( 'SP_PLUGIN_FILE' ) ) {
|
||||
define( 'SP_PLUGIN_FILE', __FILE__ );
|
||||
}
|
||||
register_activation_hook( SP_PLUGIN_FILE, array( $this, 'install' ) );
|
||||
|
||||
if ( defined( 'SP_PRO_PLUGIN_FILE' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user