Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Always load onboarding. Since no a/b test was set.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeHansenMe committed Nov 12, 2018
1 parent 6df52c4 commit 68d2b06
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions mojo-marketplace.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* Plugin Name: MOJO Marketplace
* Description: This plugin adds shortcodes, widgets, and themes to your WordPress site.
* Version: 1.4.1
* Version: 1.4.2
* Author: Mike Hansen
* Author URI: http://mikehansen.me?utm_campaign=plugin&utm_source=mojo_wp_plugin
* License: GPLv2 or later
Expand All @@ -15,7 +15,7 @@
die;
}

define( 'MM_VERSION', '1.4.1' );
define( 'MM_VERSION', '1.4.2' );
define( 'MM_BASE_DIR', plugin_dir_path( __FILE__ ) );
define( 'MM_BASE_URL', plugin_dir_url( __FILE__ ) );
define( 'MM_ASSETS_URL', 'https://www.mojomarketplace.com/mojo-plugin-assets/' );
Expand Down Expand Up @@ -48,13 +48,10 @@
require_once( MM_BASE_DIR . 'inc/partners.php' );
mm_require( MM_BASE_DIR . 'inc/branding.php' );
if ( mm_jetpack_bluehost_only() ) {
$mm_test = get_transient( 'mm_test' );
if ( isset( $mm_test['name'] ) && false !== strpos( $mm_test['name'], 'jetpack-onboarding' ) ) {
$onboard_time = strtotime( get_option( 'mm_install_date', 0 ) ) + DAY_IN_SECONDS * 90;
if ( $onboard_time > time() ) {
mm_require( MM_BASE_DIR . 'vendor/automattic/jetpack-onboarding/jetpack-onboarding.php' );
mm_require( MM_BASE_DIR . 'lib/jetpack-onboarding-tracks/jetpack-onboarding-tracks.php' );
}
$onboard_time = strtotime( get_option( 'mm_install_date', 0 ) ) + DAY_IN_SECONDS * 90;
if ( $onboard_time > time() ) {
mm_require( MM_BASE_DIR . 'vendor/automattic/jetpack-onboarding/jetpack-onboarding.php' );
mm_require( MM_BASE_DIR . 'lib/jetpack-onboarding-tracks/jetpack-onboarding-tracks.php' );
}
}
mm_require( MM_BASE_DIR . 'updater.php' );
Expand Down

0 comments on commit 68d2b06

Please sign in to comment.