diff --git a/.github/workflows/cypress-matrix.yml b/.github/workflows/cypress-matrix.yml index 8876c6b..eabdfbc 100644 --- a/.github/workflows/cypress-matrix.yml +++ b/.github/workflows/cypress-matrix.yml @@ -28,10 +28,14 @@ jobs: - '8.0' - '8.1' - '8.2' + - '8.3' wpVersion: - - '6.3' - '6.4' - '6.5' + - '6.6' + exclude: + - phpVersion: '7.1' + wpVersion: '6.6' steps: diff --git a/.gitignore b/.gitignore index 6f27710..0f777e3 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ cypress.env.json # Built-app files /.docs /build/* -/wp-plugin-mojo +/mojo-marketplace-wp-plugin # File Types *.log diff --git a/bootstrap.php b/bootstrap.php index 6578fcf..5fe1037 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -102,7 +102,7 @@ function () { setContainer( $mojo_module_container ); // Set up the updater endpoint and map values -$mojo_update_url = 'https://hiive.cloud/workers/release-api/plugins/newfold-labs/wp-plugin-mojo'; // Custom API GET endpoint +$mojo_update_url = 'https://hiive.cloud/workers/release-api/plugins/newfold-labs/wp-plugin-mojo?slug=mojo-marketplace-wp-plugin&file=mojo-marketplace.php '; // Custom API GET endpoint $mojo_plugin_updater = new PluginUpdater( MOJO_PLUGIN_FILE, $mojo_update_url ); $mojo_plugin_updater->setDataMap( array( diff --git a/cypress.config.js b/cypress.config.js index 70956eb..1858b44 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -11,7 +11,7 @@ module.exports = defineConfig({ phpVersion, pluginId: 'mojo', appId: 'wppm', - pluginSlug: 'wp-plugin-mojo', + pluginSlug: 'mojo', }, downloadsFolder: 'tests/cypress/downloads', fixturesFolder: 'tests/cypress/fixtures', @@ -76,7 +76,8 @@ module.exports = defineConfig({ supportFile: 'tests/cypress/support/index.js', testIsolation: false, excludeSpecPattern: [ - 'vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon.cy.js' // excluding until either adding ecommerce module or removing coming soon components in ecommerce module + 'vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon.cy.js', // excluding until either adding ecommerce module or removing coming soon components in ecommerce module + 'vendor/newfold-labs/wp-module-deactivation/tests/cypress/integration/deactivation-survey.cy.js' // excluding due to the mismatched slug name ], experimentalRunAllSpecs: true, }, diff --git a/inc/Admin.php b/inc/Admin.php index 912142d..2c17cd4 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -23,11 +23,12 @@ public function __construct() { /* Load Page Scripts & Styles. */ \add_action( 'load-toplevel_page_mojo', array( __CLASS__, 'assets' ) ); /* Add Links to WordPress Plugins list item. */ - \add_filter( 'plugin_action_links_wp-plugin-mojo/wp-plugin-mojo.php', array( __CLASS__, 'actions' ) ); + \add_filter( 'plugin_action_links_mojo-marketplace-wp-plugin/mojo-marketplace.php', array( __CLASS__, 'actions' ) ); // for build + \add_filter( 'plugin_action_links_wp-plugin-mojo/mojo-marketplace.php', array( __CLASS__, 'actions' ) ); // for local dev /* Add inline style to hide subnav link */ \add_action( 'admin_head', array( __CLASS__, 'admin_nav_style' ) ); /* Add runtime for data store */ - \add_filter('newfold_runtime', array( __CLASS__, 'add_to_runtime' ) ); + \add_filter( 'newfold_runtime', array( __CLASS__, 'add_to_runtime' ) ); if ( isset( $_GET['page'] ) && strpos( filter_input( INPUT_GET, 'page', FILTER_UNSAFE_RAW ), 'mojo' ) >= 0 ) { // phpcs:ignore \add_action( 'admin_footer_text', array( __CLASS__, 'add_brand_to_admin_footer' ) ); @@ -71,7 +72,7 @@ public static function subpages() { $help = array( 'mojo#/help' => __( 'Help', 'wp-plugin-mojo' ), ); - + return array_merge( $home, $marketplace, diff --git a/languages/wp-plugin-mojo.pot b/languages/wp-plugin-mojo.pot index 1ed7612..04db75f 100644 --- a/languages/wp-plugin-mojo.pot +++ b/languages/wp-plugin-mojo.pot @@ -2,7 +2,7 @@ # This file is distributed under the GPL 2.0 or later. msgid "" msgstr "" -"Project-Id-Version: The MOJO Plugin 3.1.0\n" +"Project-Id-Version: The MOJO Plugin 3.2.0\n" "Report-Msgid-Bugs-To: https://github.com/newfold-labs/wp-plugin-mojo/issues\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -15,27 +15,27 @@ msgstr "" "X-Domain: wp-plugin-mojo\n" #. Plugin Name of the plugin -#: wp-plugin-mojo.php +#: mojo-marketplace.php msgid "The MOJO Plugin" msgstr "" #. Plugin URI of the plugin -#: wp-plugin-mojo.php +#: mojo-marketplace.php msgid "https://mojomarketplace.com" msgstr "" #. Description of the plugin -#: wp-plugin-mojo.php +#: mojo-marketplace.php msgid "WordPress plugin that integrates a WordPress site with Hosting." msgstr "" #. Author of the plugin -#: wp-plugin-mojo.php +#: mojo-marketplace.php msgid "Bluehost" msgstr "" #. Author URI of the plugin -#: wp-plugin-mojo.php +#: mojo-marketplace.php msgid "https://bluehost.com" msgstr "" @@ -74,51 +74,51 @@ msgstr "" msgid "Preview the coming soon landing page" msgstr "" -#: inc/Admin.php:57 -#: inc/Admin.php:211 -#: build/3.1.0/index.js:1 +#: inc/Admin.php:58 +#: inc/Admin.php:212 +#: build/3.2.0/index.js:1 msgid "Home" msgstr "" -#: inc/Admin.php:60 -#: build/3.1.0/index.js:1 +#: inc/Admin.php:61 +#: build/3.2.0/index.js:1 msgid "Marketplace" msgstr "" -#: inc/Admin.php:65 -#: build/3.1.0/index.js:1 +#: inc/Admin.php:66 +#: build/3.2.0/index.js:1 msgid "Performance" msgstr "" -#: inc/Admin.php:69 -#: inc/Admin.php:212 -#: build/3.1.0/index.js:1 +#: inc/Admin.php:70 +#: inc/Admin.php:213 +#: build/3.2.0/index.js:1 msgid "Settings" msgstr "" -#: inc/Admin.php:72 -#: build/3.1.0/index.js:1 +#: inc/Admin.php:73 +#: build/3.2.0/index.js:1 msgid "Help" msgstr "" -#: inc/Admin.php:114 #: inc/Admin.php:115 +#: inc/Admin.php:116 msgid "MOJO" msgstr "" -#: inc/Admin.php:157 +#: inc/Admin.php:158 msgid "Please update to a newer WordPress version." msgstr "" -#: inc/Admin.php:158 +#: inc/Admin.php:159 msgid "There are new WordPress components which this plugin requires in order to render the interface." msgstr "" -#: inc/Admin.php:159 +#: inc/Admin.php:160 msgid "Please update now" msgstr "" -#: inc/Admin.php:225 +#: inc/Admin.php:226 msgid "Thank you for creating with WordPress and MOJO." msgstr "" @@ -181,209 +181,209 @@ msgstr "" msgid "Auto-updates enabled" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Mojo WordPress Plugin" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Oh No, An Error!" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "You found an error, please refresh the page and try again!" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "If the error persists, please contact support." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid " Error code: " msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "MOJO Account" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "There's nothing here!" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Admin" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "The performance feature provides improvements to loads faster for visitors including cache settings." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Sorry, that is not allowed." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "This feature cannot currently be modified." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Oops! Something went wrong. Please try again." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Support Center" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Submit a support ticket. Once you open a ticket, we'll respond promptly to get it resolved." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Submit a Request" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Phone" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Speak to our support team over the phone at 855-464-5345." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Call Us" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Blog" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Follow along and take your website to its full potential with WordPress guides and how tos, inspiration, MOJO Marketplace product updates, and more!" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Learn Stuff" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "WP Live Support" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Our WordPress experts will treat your problem like theirs and teach you how to build, grow, and maintain your websites. Starting at $29/month" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Sign Up" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Settings and Performance" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Customize & fine-tune your site." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Manage Settings" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Manage your site settings. You can ajdust automatic updates, comments, revisions and more." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Manage site performance and caching settings as well as clear the site cache." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Visit Marketplace" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Add site services, themes or plugins from the marketplace." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Explore our featured collection of tools and services." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Oops, there was an error loading the marketplace, please try again later." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Sorry, no marketplace items. Please, try again later." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Load More" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Oops! Something Went Wrong" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "An error occurred while loading the content. Please try again later." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Site Status" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Not Live" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Live" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Coming soon page" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Your Coming Soon page lets you hide your site from visitors while you make the magic happen." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Your website is currently displaying a \"Coming Soon\" page." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Manage All Updates" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "WordPress Core" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Plugins" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Themes" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Automatic Updates" msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid "Keeping automatic updates on ensures timely security fixes and the latest features." msgstr "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid " day." msgid_plural " days." msgstr[0] "" msgstr[1] "" -#: build/3.1.0/index.js:1 +#: build/3.2.0/index.js:1 msgid " comment at a time." msgid_plural " comments at a time." msgstr[0] "" diff --git a/wp-plugin-mojo.php b/mojo-marketplace.php similarity index 87% rename from wp-plugin-mojo.php rename to mojo-marketplace.php index 56e6fc6..eaa6fa7 100644 --- a/wp-plugin-mojo.php +++ b/mojo-marketplace.php @@ -12,10 +12,10 @@ * Plugin URI: https://mojomarketplace.com * Update URI: https://github.com/newfold-labs/wp-plugin-mojo/ * Description: WordPress plugin that integrates a WordPress site with Hosting. - * Version: 3.1.0 + * Version: 3.2.0 * Tested up to: 6.6.1 * Requires at least: 5.8 - * Requires PHP: 7.0 + * Requires PHP: 7.1 * Author: Bluehost * Author URI: https://bluehost.com * Text Domain: wp-plugin-mojo @@ -32,7 +32,7 @@ } // Define constants -define( 'MOJO_PLUGIN_VERSION', '3.1.0' ); +define( 'MOJO_PLUGIN_VERSION', '3.2.0' ); define( 'MOJO_PLUGIN_FILE', __FILE__ ); define( 'MOJO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'MOJO_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); @@ -66,11 +66,8 @@ 'The Web.com Plugin' => 'wp-plugin-web/wp-plugin-web.php', 'The Crazy Domains Plugin' => 'wp-plugin-crazy-domains/wp-plugin-crazy-domains.php', ); -// Deactivate legacy plugin -$nfd_plugins_check->legacy_plugins = array( - 'The MOJO Marketplace' => 'mojo-marketplace-wp-plugin/mojo-marketplace.php', // old mojo -); -$pass_nfd_check = $nfd_plugins_check->check_plugin_requirements(); + +$pass_nfd_check = $nfd_plugins_check->check_plugin_requirements(); // Check PHP version before initializing to prevent errors if plugin is incompatible. if ( $pass_nfd_check && version_compare( PHP_VERSION, '5.3', '>=' ) ) { diff --git a/package-lock.json b/package-lock.json index e4c2569..411d584 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wp-plugin-mojo", - "version": "3.1.0", + "version": "3.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wp-plugin-mojo", - "version": "3.1.0", + "version": "3.2.0", "license": "GPL-2.0-or-later", "dependencies": { "@heroicons/react": "^2.1.4", diff --git a/package.json b/package.json index fbe5946..1581f4b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wp-plugin-mojo", "description": "WordPress plugin that integrates a WordPress site with Hosting", "license": "GPL-2.0-or-later", - "version": "3.1.0", + "version": "3.2.0", "private": true, "repository": { "type": "git", @@ -55,8 +55,8 @@ "build": "wp-scripts build", "check-engines": "wp-scripts check-engines", "check-licenses": "wp-scripts check-licenses --production", - "create:dist": "rsync -r --include-from=.distinclude --exclude-from=.distignore . ./wp-plugin-mojo", - "create:zip": "cd ./wp-plugin-mojo && zip -r -9 ../wp-plugin-mojo.zip . && ls -lh ../wp-plugin-mojo.zip", + "create:dist": "rsync -r --include-from=.distinclude --exclude-from=.distignore . ./mojo-marketplace-wp-plugin", + "create:zip": "cd ./mojo-marketplace-wp-plugin && zip -r -9 ../mojo-marketplace-wp-plugin.zip . && ls -lh ../mojo-marketplace-wp-plugin.zip", "cypress": "npm cypress open", "develop": "npm run start", "develop:analyzer": "npm run start:analyzer", @@ -69,7 +69,7 @@ "log:watch": "wp-env run wordpress 'tail -f /var/www/html/wp-content/debug.log'", "php-deps": "composer install --no-dev --optimize-autoloader", "postprepare": "npm run set-wp-version", - "prebuild:cleanup": "rm -rf ./build ./wp-plugin-mojo ./wp-plugin-mojo.zip ./vendor", + "prebuild:cleanup": "rm -rf ./build ./mojo-marketplace-wp-plugin ./mojo-marketplace-wp-plugin.zip ./vendor", "set-wp-version": "node ./set-latest-wp-version.js", "simulate-runner-build": "npm run prebuild:cleanup && npm i && npm run php-deps && npm run build && npm run create:dist && npm run create:zip", "srb": "npm run simulate-runner-build",