...
 
Commits (1)
......@@ -24,11 +24,13 @@ trait Singleton {
* @return object
*/
public static function instance() {
// phpcs:disable WordPressVIPMinimum.Variables.VariableAnalysis.StaticOutsideClass
if ( ! isset( static::$instance ) ) {
static::$instance = new static();
static::$instance->setup();
}
return static::$instance;
// phpcs:enable WordPressVIPMinimum.Variables.VariableAnalysis.StaticOutsideClass
}
/**
......