diff --git a/bluehost-wordpress-plugin.php b/bluehost-wordpress-plugin.php index 5cfd5e8ad..a087ba5c5 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-beta + * Version: 3.14.14-beta * 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-beta' ); +define( 'BLUEHOST_PLUGIN_VERSION', '3.14.14-beta' ); 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 9b46a7e52..6e31e844d 100644 --- a/composer.json +++ b/composer.json @@ -76,14 +76,13 @@ "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.4.0-beta.5", "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.1", - "newfold-labs/wp-module-installer": "^1.2.0-beta.3", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.4.0", "newfold-labs/wp-module-migration": "^1.0.12", diff --git a/composer.lock b/composer.lock index cebb44289..02111e527 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": "c000a9b1718683d5f23d979c365353c5", + "content-hash": "f37abebbec550f0ea62aa02adc1806c4", "packages": [ { "name": "doctrine/inflector", @@ -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", 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 f8d011085..3059846fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluehost-wordpress-plugin", - "version": "3.14.13-beta", + "version": "3.14.14-beta", "description": "WordPress plugin that integrates your WordPress site with the Bluehost control panel, including performance, security, and update features.", "author": { "name": "Bluehost",