From 71da2e07fbb587d8d38e6929db79e91fdf4c992e Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Tue, 22 Oct 2019 14:27:26 -0600 Subject: [PATCH] - Update version --- wp-graphql-insights.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/wp-graphql-insights.php b/wp-graphql-insights.php index 7020895..e441caa 100644 --- a/wp-graphql-insights.php +++ b/wp-graphql-insights.php @@ -7,7 +7,7 @@ * Author URI: https://www.wpgraphql.com * Text Domain: wp-graphql-insights * Domain Path: /languages - * Version: 0.3.0 + * Version: 0.3.1 * * @package WPGraphQL_Insights */ @@ -33,12 +33,9 @@ final class Insights { */ private static $instance; - /** - * @return object \WPGraphQL\Extensions\WPGraphQL_Insights - */ public static function instance() { - if ( ! isset( self::$instance ) && ! ( self::$instance instanceof \WPGraphQL\Extensions\Insights ) ) { + if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Insights ) ) { self::$instance = new Insights(); self::$instance->setup_constants(); self::$instance->includes(); @@ -84,7 +81,7 @@ private static function setup_constants() { // Plugin version. if ( ! defined( 'WPGRAPHQL_INSIGHTS_VERSION' ) ) { - define( 'WPGRAPHQL_INSIGHTS_VERSION', '0.3.0' ); + define( 'WPGRAPHQL_INSIGHTS_VERSION', '0.3.1' ); } // Plugin Folder Path. @@ -233,7 +230,7 @@ function graphql_insights_init() { if ( true !== $graphql_insights_active ) { return false; } - + /** * If SAVEQUERIES hasn't already been defined, define it now */ @@ -249,10 +246,11 @@ function graphql_insights_init() { return false; } + /** * Return the instance of the Insights plugin to kick off functionality */ - return \WPGraphQL\Extensions\Insights::instance(); + return Insights::instance(); } add_action( 'init', '\WPGraphQL\Extensions\graphql_insights_init' );