Skip to content

Commit

Permalink
Merge pull request #1354 from bluehost/release/3.14.14
Browse files Browse the repository at this point in the history
Release/3.14.14
  • Loading branch information
circlecube authored Oct 17, 2024
2 parents 70e3c48 + d976aba commit 9dfc90b
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 109 deletions.
9 changes: 4 additions & 5 deletions bluehost-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' );
}
Expand All @@ -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 ) {

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
63 changes: 32 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions inc/alt-experience/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ function () {
'manage_options',
'bluehost',
function () {
echo '<style>';
echo file_get_contents( BLUEHOST_PLUGIN_DIR . 'build/' . BLUEHOST_PLUGIN_VERSION . '/index.css' );
echo '</style>';
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
Expand Down
Loading

0 comments on commit 9dfc90b

Please sign in to comment.