diff --git a/bluehost-wordpress-plugin.php b/bluehost-wordpress-plugin.php index 7430857c3..469e68656 100644 --- a/bluehost-wordpress-plugin.php +++ b/bluehost-wordpress-plugin.php @@ -12,7 +12,7 @@ * Plugin URI: https://bluehost.com * Update URI: https://github.com/bluehost/bluehost-wordpress-plugin * Description: WordPress plugin that integrates a WordPress site with the Bluehost control panel, including performance, security, and update features. - * Version: 3.14.13 + * Version: 3.14.14 * Requires at least: 6.4 * Requires PHP: 7.3 * Tested up to: 6.6.2 @@ -32,10 +32,12 @@ } // Define constants -define( 'BLUEHOST_PLUGIN_VERSION', '3.14.13' ); +define( 'BLUEHOST_PLUGIN_VERSION', '3.14.14' ); define( 'BLUEHOST_PLUGIN_FILE', __FILE__ ); define( 'BLUEHOST_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'BLUEHOST_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); +define( 'BLUEHOST_BUILD_DIR', BLUEHOST_PLUGIN_DIR . 'build/' . BLUEHOST_PLUGIN_VERSION ); +define( 'BLUEHOST_BUILD_URL', BLUEHOST_PLUGIN_URL . 'build/' . BLUEHOST_PLUGIN_VERSION ); if ( ! defined( 'NFD_HIIVE_URL' ) ) { define( 'NFD_HIIVE_URL', 'https://hiive.cloud/api' ); } @@ -49,9 +51,6 @@ return; } -define( 'BLUEHOST_BUILD_DIR', BLUEHOST_PLUGIN_DIR . 'build/' . BLUEHOST_PLUGIN_VERSION ); -define( 'BLUEHOST_BUILD_URL', BLUEHOST_PLUGIN_URL . 'build/' . BLUEHOST_PLUGIN_VERSION ); - global $pagenow; if ( 'plugins.php' === $pagenow ) { diff --git a/composer.json b/composer.json index 869cf6059..83d64cf8b 100644 --- a/composer.json +++ b/composer.json @@ -72,22 +72,22 @@ "wp-phpunit/wp-phpunit": "^6.6.2" }, "require": { - "newfold-labs/wp-module-activation": "^1.0.3", + "newfold-labs/wp-module-activation": "^1.0.4", "newfold-labs/wp-module-atomic": "^1.3.0", "newfold-labs/wp-module-coming-soon": "^1.2.6", "newfold-labs/wp-module-context": "^1.0.1", - "newfold-labs/wp-module-data": "^2.6.3", + "newfold-labs/wp-module-data": "^2.6.4", "newfold-labs/wp-module-deactivation": "^1.2.3", "newfold-labs/wp-module-ecommerce": "^1.3.44", "newfold-labs/wp-module-facebook": "^1.0.9", "newfold-labs/wp-module-features": "^1.4.2", "newfold-labs/wp-module-global-ctb": "^1.0.13", - "newfold-labs/wp-module-help-center": "^2.1.0", + "newfold-labs/wp-module-help-center": "^2.1.1", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.4.0", "newfold-labs/wp-module-migration": "^1.0.11", "newfold-labs/wp-module-my-products": "^1.0.6", - "newfold-labs/wp-module-notifications": "^1.6.0", + "newfold-labs/wp-module-notifications": "^1.6.1", "newfold-labs/wp-module-onboarding": "^2.4.2", "newfold-labs/wp-module-patterns": "^2.4.1", "newfold-labs/wp-module-performance": "2.0.1 as 1.9.9", diff --git a/composer.lock b/composer.lock index 42fd1df6a..a4b96934e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "31884e748960fc6411a22536e61303be", + "content-hash": "f37abebbec550f0ea62aa02adc1806c4", "packages": [ { "name": "doctrine/inflector", @@ -565,16 +565,16 @@ }, { "name": "newfold-labs/wp-module-activation", - "version": "1.0.3", + "version": "1.0.4", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-activation.git", - "reference": "701a4416759799b2172578eb651a0774a94ecc4f" + "reference": "6004a69982fd788f2781bcf6b35ee29394d477b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-activation/zipball/701a4416759799b2172578eb651a0774a94ecc4f", - "reference": "701a4416759799b2172578eb651a0774a94ecc4f", + "url": "https://api.github.com/repos/newfold-labs/wp-module-activation/zipball/6004a69982fd788f2781bcf6b35ee29394d477b5", + "reference": "6004a69982fd788f2781bcf6b35ee29394d477b5", "shasum": "" }, "require-dev": { @@ -616,23 +616,23 @@ ], "description": "A Module for handling WordPress brand plugins activations", "support": { - "source": "https://github.com/newfold-labs/wp-module-activation/tree/1.0.3", + "source": "https://github.com/newfold-labs/wp-module-activation/tree/1.0.4", "issues": "https://github.com/newfold-labs/wp-module-activation/issues" }, - "time": "2024-07-01T19:05:14+00:00" + "time": "2024-10-07T21:35:20+00:00" }, { "name": "newfold-labs/wp-module-ai", - "version": "1.1.11", + "version": "1.1.12", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ai.git", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761" + "reference": "3836a576e83e068b53de1d850bcb60aac471656d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/523fe373a723b2336e3043cbcaeac058734ed761", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/3836a576e83e068b53de1d850bcb60aac471656d", + "reference": "3836a576e83e068b53de1d850bcb60aac471656d", "shasum": "" }, "require": { @@ -662,10 +662,10 @@ ], "description": "A module for providing artificial intelligence capabilities.", "support": { - "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.11", + "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.12", "issues": "https://github.com/newfold-labs/wp-module-ai/issues" }, - "time": "2024-08-28T15:18:10+00:00" + "time": "2024-09-19T07:47:50+00:00" }, { "name": "newfold-labs/wp-module-atomic", @@ -830,20 +830,21 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.6.3", + "version": "2.6.4", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "f98dfabe6a4cb10aec6dcd6e81fc7d269238e9a4" + "reference": "e5c949ac106c867c6c64a83429c27d800b0d43ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/f98dfabe6a4cb10aec6dcd6e81fc7d269238e9a4", - "reference": "f98dfabe6a4cb10aec6dcd6e81fc7d269238e9a4", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/e5c949ac106c867c6c64a83429c27d800b0d43ac", + "reference": "e5c949ac106c867c6c64a83429c27d800b0d43ac", "shasum": "" }, "require": { "ext-json": "*", + "newfold-labs/wp-module-context": "^1.0", "newfold-labs/wp-module-loader": "^1.0.10", "wp-forge/helpers": "^2.0", "wp-forge/wp-query-builder": "^1.0.4", @@ -921,10 +922,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.3", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.4", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-08-30T19:51:58+00:00" + "time": "2024-10-17T16:16:30+00:00" }, { "name": "newfold-labs/wp-module-deactivation", @@ -1197,16 +1198,16 @@ }, { "name": "newfold-labs/wp-module-help-center", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-help-center.git", - "reference": "77e132e6c1974251b3889c4e9a6f80e38f91e6b3" + "reference": "0e92e33d127bea06f1ae42b56fd2cb63a3b4c1ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-help-center/zipball/77e132e6c1974251b3889c4e9a6f80e38f91e6b3", - "reference": "77e132e6c1974251b3889c4e9a6f80e38f91e6b3", + "url": "https://api.github.com/repos/newfold-labs/wp-module-help-center/zipball/0e92e33d127bea06f1ae42b56fd2cb63a3b4c1ae", + "reference": "0e92e33d127bea06f1ae42b56fd2cb63a3b4c1ae", "shasum": "" }, "require": { @@ -1238,10 +1239,10 @@ ], "description": "HelpCenter", "support": { - "source": "https://github.com/newfold-labs/wp-module-help-center/tree/2.1.0", + "source": "https://github.com/newfold-labs/wp-module-help-center/tree/2.1.1", "issues": "https://github.com/newfold-labs/wp-module-help-center/issues" }, - "time": "2024-08-30T09:05:05+00:00" + "time": "2024-10-10T14:35:47+00:00" }, { "name": "newfold-labs/wp-module-install-checker", @@ -1542,16 +1543,16 @@ }, { "name": "newfold-labs/wp-module-notifications", - "version": "1.6.0", + "version": "1.6.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-notifications.git", - "reference": "81bb49e73e90d15eb83523c6f6b8885e14553a3a" + "reference": "1cf375e3252b935967da00f516ff64098ebd1850" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/81bb49e73e90d15eb83523c6f6b8885e14553a3a", - "reference": "81bb49e73e90d15eb83523c6f6b8885e14553a3a", + "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/1cf375e3252b935967da00f516ff64098ebd1850", + "reference": "1cf375e3252b935967da00f516ff64098ebd1850", "shasum": "" }, "require": { @@ -1580,10 +1581,10 @@ ], "description": "A module for managing Newfold in-site notifications.", "support": { - "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.6.0", + "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.6.1", "issues": "https://github.com/newfold-labs/wp-module-notifications/issues" }, - "time": "2024-09-10T14:38:09+00:00" + "time": "2024-10-09T19:54:08+00:00" }, { "name": "newfold-labs/wp-module-onboarding", diff --git a/inc/alt-experience/init.php b/inc/alt-experience/init.php index 8a73e00b3..25337320a 100644 --- a/inc/alt-experience/init.php +++ b/inc/alt-experience/init.php @@ -8,10 +8,21 @@ function () { 'manage_options', 'bluehost', function () { - echo ''; - echo file_get_contents( __DIR__ . '/index.html' ); + $version = BLUEHOST_PLUGIN_VERSION; + $asset_file = BLUEHOST_BUILD_DIR . '/index.asset.php'; + if ( is_readable( $asset_file ) ) { + $asset = include_once $asset_file; + $version = $asset['version']; + } + + wp_enqueue_style( + 'bluehost-style', + BLUEHOST_BUILD_URL . '/index.css', + array( 'wp-components' ), + $version + ); + + echo file_get_contents( __DIR__ . '/index.html' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents }, 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+CiAgICA8cGF0aCBmaWxsPSIjYTdhYWFkIiBkPSJNNCA0aDguOTMzdjguOTIzSDRWNFptMTEuNTMgMGg4Ljk0djguOTIzaC04Ljk0VjRabTExLjUzMSAwSDM2djguOTIzaC04LjkzOVY0Wk00IDE1LjUzOGg4LjkzM3Y4LjkyNEg0di04LjkyNFptMTEuNTMgMGg4Ljk0djguOTI0aC04Ljk0di04LjkyNFptMTEuNTMxIDBIMzZ2OC45MjRoLTguOTM5di04LjkyNFpNNCAyNy4wNzdoOC45MzNWMzZINHYtOC45MjNabTExLjUzIDBoOC45NFYzNmgtOC45NHYtOC45MjNabTExLjUzMSAwSDM2VjM2aC04LjkzOXYtOC45MjNaIi8+Cjwvc3ZnPg==', 1 diff --git a/languages/wp-plugin-bluehost.pot b/languages/wp-plugin-bluehost.pot index d74fd5616..aca476716 100644 --- a/languages/wp-plugin-bluehost.pot +++ b/languages/wp-plugin-bluehost.pot @@ -2,7 +2,7 @@ # This file is distributed under the GPL 2.0 or later. msgid "" msgstr "" -"Project-Id-Version: The Bluehost Plugin 3.14.13\n" +"Project-Id-Version: The Bluehost Plugin 3.14.14\n" "Report-Msgid-Bugs-To: https://github.com/bluehost/bluehost-wordpress-plugin/issues\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,38 +86,38 @@ msgstr "" #: inc/Admin.php:70 #: inc/Admin.php:277 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Home" msgstr "" #: inc/Admin.php:73 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Pages & Posts" msgstr "" #: inc/Admin.php:76 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Store" msgstr "" #: inc/Admin.php:79 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Marketplace" msgstr "" #: inc/Admin.php:84 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Performance" msgstr "" #: inc/Admin.php:88 #: inc/Admin.php:278 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Settings" msgstr "" #: inc/Admin.php:93 -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Staging" msgstr "" @@ -191,221 +191,221 @@ msgstr "" msgid "Auto-updates enabled" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Bluehost WordPress Plugin" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Oh No, An Error!" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "You found an error, please refresh the page and try again!" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "If the error persists, please contact support." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Error code:" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Bluehost Account" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "There's nothing here!" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Products & Services" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Sales & Promotions" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Sales Channel" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Payments" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Store Details" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Help with WordPress" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Admin" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "The staging feature provides a way to copy a site to test new updates, features or content." msgstr "" -#: build/3.14.13/index.js:1 -#: build/3.14.13/index.js:9 +#: build/3.14.14/index.js:1 +#: build/3.14.14/index.js:9 msgid "Sorry, that is not allowed." msgstr "" -#: build/3.14.13/index.js:1 -#: build/3.14.13/index.js:9 +#: build/3.14.14/index.js:1 +#: build/3.14.14/index.js:9 msgid "This feature cannot currently be modified." msgstr "" -#: build/3.14.13/index.js:1 -#: build/3.14.13/index.js:9 +#: build/3.14.14/index.js:1 +#: build/3.14.14/index.js:9 msgid "Oops! Something went wrong. Please try again." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Phone" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Call Us" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Chat" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Chat with one of our friendly Customer Care Specialists, as we are waiting to help. Open 24 hours - 7 days." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Live Chat" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Tweet" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Find our team at @bluehost for updates on our products and support from our team." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Tweet Us" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "YouTube" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Find tutorials, answers, interviews and guides on our YouTube channel." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Watch Now" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Knowledge Base" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Articles, guides, how-tos, instructions, and answers to our client's most frequently asked questions." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Visit Knowledge Base" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Resources" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Boost your online knowledge and get ahead of the competition." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Explore Resources" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Events and Webinars" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Team Bluehost organizes multiple webinars and events throughout the year. We are also sponsors and speak at most WordCamps across the world. Join us at our next event!" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "More Info" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Bluehost Website" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Not finding what you need? Visit our website for more information about our products and services." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Go to Bluehost" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Site Pages" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Edit your homepage and other existing pages or add new pages to your site." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "View all" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Add New" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "The Help Center provides guided, step-by-step assistance as you build your site." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Site Status" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Not Live" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Live" msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Your Bluehost Coming Soon page lets you hide your site from visitors while you make the magic happen." msgstr "" -#: build/3.14.13/index.js:1 +#: build/3.14.14/index.js:1 msgid "Your website is currently displaying a \"Coming Soon\" page." msgstr "" #. translators: %s: number of weeks. `The trash will automatically empty every ${numTrashWeeks} weeks.` -#: build/3.14.13/index.js:3 +#: build/3.14.14/index.js:3 msgid "The trash will automatically empty every %s week." msgid_plural "The trash will automatically empty every %s weeks." msgstr[0] "" msgstr[1] "" #. translators: %s: number of comments. `Posts will display ${commentsPerPage} comments at a time.` -#: build/3.14.13/index.js:9 +#: build/3.14.14/index.js:9 msgid "WonderBlocks provides a library of customizable block patterns and page templates." msgstr "" diff --git a/package.json b/package.json index 369d56e4a..a4c97b3e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluehost-wordpress-plugin", - "version": "3.14.13", + "version": "3.14.14", "description": "WordPress plugin that integrates your WordPress site with the Bluehost control panel, including performance, security, and update features.", "author": { "name": "Bluehost",