From 8bb70f193ce7485370c442d6e8feefb451925686 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 13 Oct 2022 11:08:44 -0400 Subject: [PATCH 1/2] use strpos rather than str_contains for php < 8 --- bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 9f0e318..0cada74 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -50,10 +50,10 @@ function () { // Set marketplace brand from mm_brand $marketplace_brand = strtolower( get_option( 'mm_brand', 'mojo' ) ); -if ( str_contains( $marketplace_brand, 'bluehost' ) ) { +if ( false !== strpos( $marketplace_brand, 'bluehost' ) ) { // simplify bluehost brand for marketplace $marketplace_brand = 'bluehost'; -} elseif ( str_contains( $marketplace_brand, 'hostgator' ) ) { +} elseif ( false !== strpos( $marketplace_brand, 'hostgator' ) ) { // simplify hostgator brand for marketplace $marketplace_brand = 'hostgator'; } else { From 90d88dbb7033ed65e56277980ce7ae619a286fa4 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 13 Oct 2022 11:46:07 -0400 Subject: [PATCH 2/2] version bump --- mojo-marketplace.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mojo-marketplace.php b/mojo-marketplace.php index 4bae2e3..6c5e21e 100644 --- a/mojo-marketplace.php +++ b/mojo-marketplace.php @@ -2,7 +2,7 @@ /** * Plugin Name: MOJO Marketplace * Description: This plugin adds shortcodes, widgets, and themes to your WordPress site. - * Version: 1.7.0 + * Version: 1.7.1 * Author: Bluehost * Author URI: https://bluehost.com * Requires at least: 4.7 @@ -20,7 +20,7 @@ die; } -define( 'MM_VERSION', '1.7.0' ); +define( 'MM_VERSION', '1.7.1' ); define( 'MM_FILE', __FILE__ ); define( 'MM_BASE_DIR', plugin_dir_path( __FILE__ ) ); define( 'MM_BASE_URL', plugin_dir_url( __FILE__ ) );