Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/3.15.6 #1447

Merged
merged 56 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5e7dddf
removed priority
geckod22 Nov 14, 2024
a2be8b0
Merge pull request #1412 from bluehost/fix/plugins_loaded_priority_fo…
circlecube Nov 14, 2024
f2b94ac
NPM(deps): Bump @wordpress/dom-ready from 4.11.0 to 4.12.0
dependabot[bot] Nov 18, 2024
b3aa468
Update Ecommerce Version to 1.4.4
aratidgr8 Nov 20, 2024
cd1fe53
Merge branch 'main' into develop
circlecube Nov 20, 2024
8b4c3fc
Composer(deps): Bump newfold-labs/wp-module-patterns from 2.6.1 to 2.7.1
dependabot[bot] Nov 20, 2024
c2f8374
Merge pull request #1420 from bluehost/dependabot/composer/develop/ne…
circlecube Nov 20, 2024
1a110a0
Merge pull request #1419 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Nov 20, 2024
3f3203e
Composer(deps): Bump newfold-labs/wp-module-onboarding
dependabot[bot] Nov 20, 2024
0b79e50
NPM(deps): Bump @wordpress/i18n from 5.11.0 to 5.12.0
dependabot[bot] Nov 20, 2024
d4240e1
NPM Dev(deps-dev): Bump tailwindcss from 3.4.14 to 3.4.15
dependabot[bot] Nov 20, 2024
0969ca2
NPM(deps): Bump @wordpress/compose from 7.11.0 to 7.12.0
dependabot[bot] Nov 20, 2024
0ff7cce
Merge pull request #1415 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Nov 20, 2024
4b7e558
Merge pull request #1416 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Nov 20, 2024
fd499fd
Merge pull request #1418 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Nov 20, 2024
5ea8c18
Merge pull request #1423 from bluehost/dependabot/composer/develop/ne…
circlecube Nov 20, 2024
899ca6b
NPM(deps): Bump @wordpress/icons from 10.11.0 to 10.12.0
dependabot[bot] Nov 20, 2024
aaded7e
Merge branch 'main' into develop
circlecube Nov 20, 2024
1f4e87a
Merge pull request #1417 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Nov 20, 2024
e5590f8
Merge branch 'develop' of https://github.com/bluehost/bluehost-wordpr…
circlecube Nov 20, 2024
8e550b4
Merge branch 'develop' into update/ecommerce-1.4.4
circlecube Nov 20, 2024
fb2649f
roll back coming soon update
circlecube Nov 20, 2024
f2d5a7b
Merge pull request #1422 from bluehost/update/ecommerce-1.4.4
circlecube Nov 20, 2024
0e8faa7
NPM Dev(deps-dev): Bump cypress from 13.15.2 to 13.16.0
dependabot[bot] Nov 21, 2024
26f111f
Merge branch 'main' into develop
circlecube Nov 22, 2024
60ef573
Bump coming soon to 1.3.0
wpalani Nov 24, 2024
f3cec42
Bump coming soon module to version 1.3.1
wpalani Nov 24, 2024
9d5e3a3
Composer(deps): Bump newfold-labs/wp-module-solutions
dependabot[bot] Nov 25, 2024
654efb8
NPM(deps): Bump @wordpress/element from 6.11.0 to 6.13.0
dependabot[bot] Nov 27, 2024
7ea08b4
NPM Dev(deps-dev): Bump @wordpress/eslint-plugin from 21.4.0 to 21.6.0
dependabot[bot] Nov 27, 2024
1d5465b
Merge pull request #1437 from bluehost/dependabot/composer/develop/ne…
circlecube Dec 2, 2024
533aeb1
Merge pull request #1441 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
f54c8e0
Merge pull request #1431 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
648b097
Merge pull request #1438 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
6fb318d
NPM(deps): Bump @wordpress/html-entities from 4.11.0 to 4.13.0
dependabot[bot] Dec 2, 2024
589b65a
NPM Dev(deps-dev): Bump @wordpress/env from 10.11.0 to 10.13.0
dependabot[bot] Dec 2, 2024
6dcd4a3
Merge pull request #1440 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
ae7db28
Merge pull request #1439 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
deb3d4d
NPM Dev(deps-dev): Bump @wordpress/scripts from 30.5.1 to 30.6.0
dependabot[bot] Dec 2, 2024
d4d3654
NPM(deps): Bump @wordpress/icons from 10.12.0 to 10.13.0
dependabot[bot] Dec 2, 2024
61668a3
NPM(deps): Bump @wordpress/compose from 7.12.0 to 7.13.0
dependabot[bot] Dec 2, 2024
9959763
Merge pull request #1442 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
123ee00
Merge pull request #1445 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
d520bc9
Merge pull request #1444 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
c405627
NPM(deps): Bump @wordpress/dom-ready from 4.12.0 to 4.13.0
dependabot[bot] Dec 2, 2024
5fdcf86
NPM(deps): Bump @reduxjs/toolkit from 2.3.0 to 2.4.0
dependabot[bot] Dec 2, 2024
0ac71c5
Merge pull request #1443 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
75823d8
Merge pull request #1446 from bluehost/dependabot/npm_and_yarn/develo…
circlecube Dec 2, 2024
745c231
update plugin version to 3.15.6
circlecube Dec 2, 2024
a190999
update i18n file
circlecube Dec 2, 2024
4ccfe6f
skip coming-soon-woo test in older envs
circlecube Dec 2, 2024
7c7cb9e
fix typo in exclusion path
circlecube Dec 2, 2024
a352898
bump coming soon module to 1.3.2 for updated cypress test
circlecube Dec 4, 2024
837020d
update test exclusion with support methods specific to each test requ…
circlecube Dec 4, 2024
e99e9ae
auto retry install wordpress step
circlecube Dec 4, 2024
e6a5370
fix Site-Capabilities test - requires Woo rather than Wonder
circlecube Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/cypress-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ jobs:
echo '{"wpVersion": "${{ matrix.wpVersion }}","phpVersion": "${{ matrix.phpVersion }}"}' > cypress.env.json

- name: Install WordPress
run: npx wp-env start --debug
uses: nick-fields/retry@v3
with:
timeout_minutes: 4
max_attempts: 3
command: npx wp-env start --debug

- name: Run Cypress Tests
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || github.actor == 'dependabot[bot]' }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ jobs:
run: echo '{"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json

- name: Install WordPress
run: npx wp-env start --debug
uses: nick-fields/retry@v3
with:
timeout_minutes: 4
max_attempts: 3
command: npx wp-env start --debug

- name: Run Cypress Tests
if: ${{ github.repository != 'bluehost/bluehost-wordpress-plugin' || github.actor == 'dependabot[bot]' }}
Expand Down
4 changes: 2 additions & 2 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.15.5
* Version: 3.15.6
* Requires at least: 6.5
* Requires PHP: 7.3
* Tested up to: 6.7.1
Expand All @@ -32,7 +32,7 @@
}

// Define constants
define( 'BLUEHOST_PLUGIN_VERSION', '3.15.5' );
define( 'BLUEHOST_PLUGIN_VERSION', '3.15.6' );
define( 'BLUEHOST_PLUGIN_FILE', __FILE__ );
define( 'BLUEHOST_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'BLUEHOST_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Expand Down
4 changes: 1 addition & 3 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use WP_Forge\UpgradeHandler\UpgradeHandler;
use NewfoldLabs\WP\ModuleLoader\Container;
use NewfoldLabs\WP\ModuleLoader\Plugin;
use NewfoldLabs\WP\Context\Context;
use NewfoldLabs\WP\Module\Features\Features;
use function NewfoldLabs\WP\ModuleLoader\container as setContainer;
use function NewfoldLabs\WP\Context\setContext;
Expand Down Expand Up @@ -80,8 +79,7 @@ function () {
$bluehost_module_container->set( 'cache_types', $cache_types );
$bluehost_module_container->set( 'marketplace_brand', $marketplace_brand );
}
},
11
}
);

// Properly get branding links depending on market
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
"require": {
"newfold-labs/wp-module-activation": "^1.0.5",
"newfold-labs/wp-module-atomic": "^1.3.0",
"newfold-labs/wp-module-coming-soon": "^1.2.6",
"newfold-labs/wp-module-coming-soon": "^1.3.2",
"newfold-labs/wp-module-context": "^1.0.1",
"newfold-labs/wp-module-data": "^2.6.7",
"newfold-labs/wp-module-deactivation": "^1.2.3",
"newfold-labs/wp-module-ecommerce": "^1.4.3",
"newfold-labs/wp-module-ecommerce": "^1.4.4",
"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",
Expand All @@ -95,7 +95,7 @@
"newfold-labs/wp-module-pls": "^1.0.0",
"newfold-labs/wp-module-runtime": "^1.0.12",
"newfold-labs/wp-module-secure-passwords": "^1.1.1",
"newfold-labs/wp-module-solutions": "^1.0.6",
"newfold-labs/wp-module-solutions": "^1.0.7",
"newfold-labs/wp-module-sso": "^1.0.7",
"newfold-labs/wp-module-staging": "^2.1.1",
"wp-forge/wp-update-handler": "^1.0.2",
Expand Down
63 changes: 34 additions & 29 deletions composer.lock

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

58 changes: 52 additions & 6 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ module.exports = defineConfig( {
],
e2e: {
setupNodeEvents( on, config ) {
const semver = require( 'semver' );

// Ensure that the base URL is always properly set.
if ( config.env && config.env.baseUrl ) {
config.baseUrl = config.env.baseUrl;
Expand All @@ -53,13 +51,27 @@ module.exports = defineConfig( {
}
}

// Exclude Onboarding and ecommerce tests for WordPress lower than 6.5 (6.4 or 6.3) or PHP lower than 7.4 (7.1, 7.2 and 7.3)
if ( semver.satisfies( config.env.wpSemverVersion, '<6.5.0' ) || semver.satisfies( config.env.phpSemverVersion, '<7.4.0' )) {
// Tests require Wondor Theme, exclude if not supported due to WP or PHP versions
if ( ! supportsWonderTheme( config.env ) ) {
config.excludeSpecPattern = config.excludeSpecPattern.concat( [
'vendor/newfold-labs/wp-module-onboarding/tests/cypress/integration/**', // Onboarding requires Wonder Theme
'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/ecommerce-next-steps.cy.js', // Requires Onboarding
] );
}

// Tests requires Woo, so exclude if not supported due to WP or PHP versions
if ( ! supportsWoo( config.env ) ) {
config.excludeSpecPattern = config.excludeSpecPattern.concat( [
'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Site-Capabilities/**',
'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/homePageWithWoo.cy.js',
'vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/ecommerce-next-steps.cy.js', // Skip this since Onboarding does not support this version
'vendor/newfold-labs/wp-module-onboarding/tests/cypress/integration/**' // Onboarding requires WP 6.5 or greater, as it uses the Wonder Theme which has the same requirement
'vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon-woo.cy.js',
] );
}

// Test requires Jetpack, so exclude if not supported due to WP or PHP versions
if ( ! supportsJetpack( config.env ) ) {
config.excludeSpecPattern = config.excludeSpecPattern.concat( [
'vendor/newfold-labs/wp-module-solutions/tests/cypress/integration/wp-plugins-installation-check.cy.js',
] );
}

Expand All @@ -81,3 +93,37 @@ module.exports = defineConfig( {
retries: 1,
experimentalMemoryManagement: true,
} );

// Check against plugin support at https://wordpress.org/plugins/woocommerce/
const supportsWoo = ( env ) => {
const semver = require( 'semver' );
if (
semver.satisfies( env.wpSemverVersion, '>=6.5.0' ) &&
semver.satisfies( env.phpSemverVersion, '>=7.4.0' )
) {
return true;
}
return false;
};
// Check against plugin support at https://wordpress.org/plugins/jetpack/
const supportsJetpack = ( env ) => {
const semver = require( 'semver' );
if (
semver.satisfies( env.wpSemverVersion, '>=6.6.0' ) &&
semver.satisfies( env.phpSemverVersion, '>=7.2.0' )
) {
return true;
}
return false;
};
// Check against theme support at https://github.com/newfold-labs/yith-wonder/blob/master/style.css
const supportsWonderTheme = ( env ) => {
const semver = require( 'semver' );
if (
semver.satisfies( env.wpSemverVersion, '>=6.5.0' ) &&
semver.satisfies( env.phpSemverVersion, '>=7.0.0' )
) {
return true;
}
return false;
};
Loading
Loading