Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #22 from wp-graphql/release/v0.3.1
Browse files Browse the repository at this point in the history
- Update version
  • Loading branch information
jasonbahl authored Oct 22, 2019
2 parents 97d2456 + 71da2e0 commit 9411a63
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions wp-graphql-insights.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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();
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
*/
Expand All @@ -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' );

0 comments on commit 9411a63

Please sign in to comment.