Skip to content

Automated minor release: 2.15.0 #1108

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

Merged
merged 101 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
783f314
GitHub Actions(deps): Bump actions/setup-node from 4.3.0 to 4.4.0
dependabot[bot] May 5, 2025
761c6fa
GitHub Actions(deps): Bump actions/cache from 4.2.2 to 4.2.3
dependabot[bot] May 5, 2025
fb0e0b5
GitHub Actions(deps): Bump shivammathur/setup-php from 2.32.0 to 2.33.0
dependabot[bot] May 5, 2025
373fd41
GitHub Actions(deps): Bump actions/upload-artifact from 4.6.1 to 4.6.2
dependabot[bot] May 5, 2025
e986b1b
NPM(deps): Bump react-error-boundary from 5.0.0 to 6.0.0
dependabot[bot] May 5, 2025
af92760
Merge pull request #1053 from newfold-labs/dependabot/github_actions/…
circlecube May 5, 2025
c7ed570
Merge pull request #1054 from newfold-labs/dependabot/github_actions/…
circlecube May 5, 2025
c947c54
Merge pull request #1057 from newfold-labs/dependabot/github_actions/…
circlecube May 5, 2025
59f2968
Merge pull request #1058 from newfold-labs/dependabot/github_actions/…
circlecube May 5, 2025
13c3d18
Merge branch 'main' into develop
circlecube May 7, 2025
35528d1
NPM(deps): Bump html-react-parser from 5.2.2 to 5.2.5
dependabot[bot] May 12, 2025
934137b
NPM(deps): Bump @reduxjs/toolkit from 2.7.0 to 2.8.2
dependabot[bot] May 15, 2025
5ad637d
NPM Dev(deps-dev): Bump cypress from 14.3.2 to 14.4.0
dependabot[bot] May 21, 2025
f883420
Enable Migrations for HostGator
arunshenoy99 May 28, 2025
db2f103
Revert "Enable Migrations for HostGator"
arunshenoy99 May 28, 2025
e41bb9d
Enable Migrations for HostGator
arunshenoy99 May 28, 2025
8588055
Merge pull request #1076 from newfold-labs/enhance/enable-hg-migrations
circlecube May 28, 2025
2ecce33
Merge pull request #1073 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
32d921a
Merge pull request #1068 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
1328ba4
Merge pull request #1070 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
c38693d
Composer Dev(deps-dev): Bump wp-phpunit/wp-phpunit from 6.7.2 to 6.8.1
dependabot[bot] May 28, 2025
dafe95c
Merge pull request #1061 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
b34da19
Merge pull request #1051 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
7b1a009
NPM Dev(deps-dev): Bump @wordpress/scripts from 30.15.0 to 30.17.0
dependabot[bot] May 28, 2025
2ad155b
Merge pull request #1075 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
662d1a9
Composer(deps): Bump newfold-labs/wp-module-data from 2.7.2 to 2.8.4
dependabot[bot] May 28, 2025
aa364f5
Merge pull request #1074 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
2547d94
Composer(deps): Bump newfold-labs/wp-module-help-center
dependabot[bot] May 28, 2025
b556177
NPM(deps): Bump @wordpress/i18n from 5.22.0 to 5.24.0
dependabot[bot] May 28, 2025
a24b171
NPM(deps): Bump @wordpress/dom-ready from 4.22.0 to 4.24.0
dependabot[bot] May 28, 2025
94d9a33
NPM(deps): Bump react-router-dom from 7.5.3 to 7.6.1
dependabot[bot] May 28, 2025
51221f5
Merge pull request #1071 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
a0d92a9
Merge pull request #1077 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
1261872
Merge pull request #1078 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
691665c
Merge pull request #1080 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
144d218
Composer(deps): Bump newfold-labs/wp-module-activation
dependabot[bot] May 28, 2025
77f039a
Merge pull request #1059 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
e64ac45
NPM(deps): Bump @wordpress/compose from 7.22.0 to 7.24.0
dependabot[bot] May 28, 2025
da4ac26
NPM(deps): Bump @wordpress/element from 6.22.0 to 6.24.0
dependabot[bot] May 28, 2025
85ef34f
Merge pull request #1081 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
6326090
Merge pull request #1079 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
775fa51
Composer Dev(deps-dev): Bump wp-cli/i18n-command from 2.6.3 to 2.6.5
dependabot[bot] May 28, 2025
166f4df
NPM(deps): Bump @wordpress/icons from 10.22.0 to 10.24.0
dependabot[bot] May 28, 2025
e77efb2
NPM Dev(deps-dev): Bump @wordpress/env from 10.22.0 to 10.24.0
dependabot[bot] May 28, 2025
50522b6
Merge pull request #1087 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
b4e9bad
Merge pull request #1088 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube May 28, 2025
156f5e3
Merge pull request #1086 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
ac1df36
Composer(deps): Bump newfold-labs/wp-module-patterns from 2.9.1 to 2.9.4
dependabot[bot] May 28, 2025
baa2350
roll patterns module 2.9.3 since 2.9.4 has a known issue
circlecube May 28, 2025
a2da8f7
Merge pull request #1083 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
f94665b
Composer(deps): Bump newfold-labs/wp-module-notifications
dependabot[bot] May 28, 2025
194e78d
add prepare release workflow
circlecube May 28, 2025
e994b34
Merge branch 'develop' of https://github.com/newfold-labs/wp-plugin-h…
circlecube May 28, 2025
9045a93
Merge pull request #1055 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
37084f4
Composer(deps): Bump newfold-labs/wp-module-deactivation
dependabot[bot] May 28, 2025
da1cf20
Merge pull request #1085 from newfold-labs/dependabot/composer/develo…
circlecube May 28, 2025
f129420
Composer(deps): Bump newfold-labs/wp-module-marketplace
dependabot[bot] May 28, 2025
e350914
Merge branch 'main' into develop
circlecube May 29, 2025
7e41f6d
Merge pull request #1082 from newfold-labs/dependabot/composer/develo…
circlecube May 30, 2025
83df62c
Composer(deps): Bump newfold-labs/wp-module-patterns from 2.9.3 to 2.9.5
dependabot[bot] May 30, 2025
1ee2f99
Merge pull request #1093 from newfold-labs/dependabot/composer/develo…
circlecube May 30, 2025
4d6f7bb
general changes for brand plugin parity
circlecube May 30, 2025
f6bb13b
lint fix and finish saving changes
circlecube May 30, 2025
bc4e8e0
remove cache controller and cache level from settings api
circlecube Jun 2, 2025
50deb6e
update language files
circlecube Jun 2, 2025
e590ce9
finish adding edited files for removing cachingcontroller
circlecube Jun 2, 2025
40f2e32
fix tests for plugin app updates
circlecube Jun 2, 2025
464c135
fix typos from updated files
circlecube Jun 3, 2025
4cf1a2c
fix typos from updated files
circlecube Jun 3, 2025
3e7ea20
Merge pull request #1094 from newfold-labs/update/plugin-parity
circlecube Jun 3, 2025
42ff88a
Composer(deps): Bump newfold-labs/wp-module-notifications
dependabot[bot] Jun 3, 2025
26a933d
Merge pull request #1095 from newfold-labs/dependabot/composer/develo…
circlecube Jun 3, 2025
c7229ff
Composer(deps): Bump newfold-labs/wp-module-global-ctb
dependabot[bot] Jun 3, 2025
c5c8ea9
Merge pull request #1096 from newfold-labs/dependabot/composer/develo…
circlecube Jun 4, 2025
f0af8f2
Composer(deps): Bump newfold-labs/wp-module-migration
dependabot[bot] Jun 4, 2025
d2a967b
NPM(deps): Bump @wordpress/compose from 7.24.0 to 7.25.0
dependabot[bot] Jun 4, 2025
5470363
NPM Dev(deps-dev): Bump @wordpress/scripts from 30.17.0 to 30.18.0
dependabot[bot] Jun 4, 2025
4274da8
NPM(deps): Bump @wordpress/icons from 10.24.0 to 10.25.0
dependabot[bot] Jun 4, 2025
af0cc98
Merge pull request #1097 from newfold-labs/dependabot/composer/develo…
circlecube Jun 4, 2025
cf82f0e
Merge pull request #1099 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
097d09c
Merge pull request #1098 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
3c3a94e
Merge pull request #1100 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
baa8516
NPM Dev(deps-dev): Bump cypress from 14.4.0 to 14.4.1
dependabot[bot] Jun 4, 2025
718c5b2
NPM Dev(deps-dev): Bump @wordpress/env from 10.24.0 to 10.25.0
dependabot[bot] Jun 4, 2025
b760dd1
Merge pull request #1101 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
e4da62d
Merge pull request #1102 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
62bbfbf
NPM(deps): Bump @wordpress/dom-ready from 4.24.0 to 4.25.0
dependabot[bot] Jun 4, 2025
af0e28f
NPM(deps): Bump react-router-dom from 7.6.1 to 7.6.2
dependabot[bot] Jun 4, 2025
065aa7b
Merge pull request #1103 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
45f5f46
Merge pull request #1104 from newfold-labs/dependabot/npm_and_yarn/de…
circlecube Jun 4, 2025
643f121
clean up version bump commands
circlecube Jun 5, 2025
51e5519
Composer(deps): Bump newfold-labs/wp-module-onboarding
dependabot[bot] Jun 6, 2025
4f8dd22
Merge pull request #1106 from newfold-labs/dependabot/composer/develo…
circlecube Jun 6, 2025
c40c005
🤖 prep for release - 2.14.1 → 2.15.0
github-actions[bot] Jun 6, 2025
9e0caca
Merge branch 'main' into release/2.15.0
circlecube Jun 6, 2025
f311bfa
Composer(deps): Bump newfold-labs/wp-module-migration
dependabot[bot] Jun 9, 2025
05b7c87
Merge pull request #1109 from newfold-labs/dependabot/composer/develo…
circlecube Jun 9, 2025
483ef27
Merge branch 'develop' into release/2.15.0
circlecube Jun 9, 2025
f7309cf
rollback global ctb to 1.2.0
circlecube Jun 11, 2025
a4d00f8
update performance module to 3.1.6
circlecube Jun 11, 2025
d67a881
update woo requirements for matrix tests
circlecube Jun 11, 2025
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
2 changes: 1 addition & 1 deletion .github/scripts/set-version-bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ if ( fs.existsSync( packagefile ) && fs.existsSync( pluginfile ) ) {
console.log( 'Version updated', currentVersion, '=>', newVersion );
} else {
console.log(
'Version update error: package.json or bluehost-wordpress-plugin.php not found.'
'Version update error: package.json or wp-plugin-hostgator.php not found.'
);
}
14 changes: 10 additions & 4 deletions .github/workflows/cypress-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '8.1'
coverage: none
Expand All @@ -55,7 +55,7 @@ jobs:
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT

- name: Use Node.js 20.x
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x
cache: 'npm'
Expand All @@ -65,7 +65,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:

- name: Store screenshots of test failures
if: ${{ failure() }}
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: screenshots
path: ./tests/cypress/screenshots
Expand All @@ -135,3 +135,9 @@ jobs:
if: ${{ always() }}
continue-on-error: true
run: npx wp-env run wordpress cat /var/www/html/wp-content/debug.log

- name: Output wordpress docker logs
if: always()
continue-on-error: true
run: |
npx wp-env logs --watch=false --debug=true
14 changes: 10 additions & 4 deletions .github/workflows/cypress-tests-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '8.1'
coverage: none
Expand All @@ -37,7 +37,7 @@ jobs:
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT
- name: Use Node.js 20.x
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x
cache: 'npm'
Expand All @@ -47,7 +47,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:

- name: Store screenshots of test failures
if: failure()
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: screenshots
path: ./tests/cypress/screenshots
Expand All @@ -113,3 +113,9 @@ jobs:
if: always()
continue-on-error: true
run: npx wp-env run wordpress cat /var/www/html/wp-content/debug.log

- name: Output wordpress docker logs
if: always()
continue-on-error: true
run: |
npx wp-env logs --watch=false --debug=true
16 changes: 11 additions & 5 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '8.1'
coverage: none
Expand All @@ -48,7 +48,7 @@ jobs:
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT

- name: Use Node.js 20.x
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x

Expand All @@ -57,7 +57,7 @@ jobs:
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT

- name: Cache node modules
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -69,7 +69,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:

- name: Store screenshots of test failures
if: ${{ failure() }}
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: screenshots
path: ./tests/cypress/screenshots
Expand All @@ -134,3 +134,9 @@ jobs:
if: ${{ always() }}
continue-on-error: true
run: npx wp-env run wordpress cat /var/www/html/wp-content/debug.log

- name: Output wordpress docker logs
if: always()
continue-on-error: true
run: |
npx wp-env logs --watch=false --debug=true
4 changes: 2 additions & 2 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

# Use PHP 7.4 here for compatibility with the WordPress codesniffer rules.
- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '7.4'
coverage: none
Expand All @@ -42,7 +42,7 @@ jobs:
if: "!! env.GIT_DIFF"

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/upload-artifact-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '8.1'
coverage: none
Expand All @@ -44,7 +44,7 @@ jobs:
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT

- name: Use Node.js 20.x
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x

Expand All @@ -53,7 +53,7 @@ jobs:
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT

- name: Cache node modules
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -65,7 +65,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
working-directory: ${{ steps.workflow.outputs.DIST }}
run: find .

- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ steps.workflow.outputs.PACKAGE }}
path: ${{ steps.workflow.outputs.DIST }}
8 changes: 4 additions & 4 deletions .github/workflows/upload-asset-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
[[ "$taggedVersion" == "$pluginPackageVersion" ]] || exit 1

- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '8.1'
coverage: none
Expand All @@ -54,7 +54,7 @@ jobs:
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT

- name: Use Node.js 20.x
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x

Expand All @@ -63,7 +63,7 @@ jobs:
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT

- name: Cache node modules
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -75,7 +75,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wp-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT

- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
with:
php-version: '8.1'
coverage: none
Expand All @@ -38,15 +38,15 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer vendor directory
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Setup Node
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x

Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@newfold-labs:registry=https://npm.pkg.github.com/
legacy-peer-deps=true
40 changes: 39 additions & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ function ( $args, $default_args ) {
require HOSTGATOR_PLUGIN_DIR . '/inc/jetpack.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/LoginRedirect.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/partners.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/RestApi/CachingController.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/RestApi/SettingsController.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/RestApi/rest-api.php';
require HOSTGATOR_PLUGIN_DIR . '/inc/settings.php';
Expand All @@ -191,3 +190,42 @@ function ( $args, $default_args ) {

// Instantiate the Features singleton
Features::getInstance();

/**
* Handle activation tasks.
* TODO: Move this to the activation module
*
* @return void
*/
function on_activate() {
// clear transients
delete_transient( 'newfold_marketplace' );
delete_transient( 'newfold_notifications' );
delete_transient( 'newfold_solutions' );
delete_transient( 'nfd_site_capabilities' );
// Flush rewrite rules
flush_rewrite_rules();
}

/**
* Determine if the plugin was freshly activated.
*
* @return void
*/
function load_plugin() {
if ( is_admin() && HOSTGATOR_PLUGIN_FILE === get_option( 'nfd_activated_fresh' ) ) {
delete_option( 'nfd_activated_fresh' );
on_activate();
}
}

// Check for plugin activation
add_action( 'admin_init', __NAMESPACE__ . '\\load_plugin' );

// Register activation hook to set the activation flag
register_activation_hook(
HOSTGATOR_PLUGIN_FILE,
function () {
add_option( 'nfd_activated_fresh', HOSTGATOR_PLUGIN_FILE );
}
);
39 changes: 20 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
]
}
},
"require-dev": {
"newfold-labs/wp-php-standards": "^1.2.5",
"wp-cli/i18n-command": "^2.6.3",
"wp-phpunit/wp-phpunit": "^6.7.2"
},
"scripts": {
"fix": "vendor/bin/phpcbf --standard=phpcs.xml .",
"lint": "vendor/bin/phpcs --standard=phpcs.xml -s .",
Expand All @@ -72,29 +67,35 @@
"i18n-php": "Generate new language .l10n.php files.",
"i18n-json": "Generate new language .json files."
},
"require-dev": {
"newfold-labs/wp-php-standards": "^1.2.5",
"roave/security-advisories": "dev-latest",
"wp-cli/i18n-command": "^2.6.5",
"wp-phpunit/wp-phpunit": "^6.8.1"
},
"require": {
"newfold-labs/wp-module-activation": "^1.0.7",
"newfold-labs/wp-module-atomic": "^1.3",
"newfold-labs/wp-module-activation": "^1.0.8",
"newfold-labs/wp-module-atomic": "^1.3.0",
"newfold-labs/wp-module-coming-soon": "^1.5.0",
"newfold-labs/wp-module-context": "^1.0.1",
"newfold-labs/wp-module-data": "^2.7.2",
"newfold-labs/wp-module-deactivation": "^1.4.0",
"newfold-labs/wp-module-ecommerce": "^1.6.1",
"newfold-labs/wp-module-data": "^2.8.4",
"newfold-labs/wp-module-deactivation": "^1.5.1",
"newfold-labs/wp-module-ecommerce": "^1.7.8",
"newfold-labs/wp-module-facebook": "^1.2.1",
"newfold-labs/wp-module-features": "^1.5.0",
"newfold-labs/wp-module-global-ctb": "^1.2.0",
"newfold-labs/wp-module-help-center": "^2.3.1",
"newfold-labs/wp-module-global-ctb": "1.2.0",
"newfold-labs/wp-module-help-center": "^2.4.2",
"newfold-labs/wp-module-loader": "^1.0.12",
"newfold-labs/wp-module-marketplace": "^2.6.2",
"newfold-labs/wp-module-migration": "^1.5.3",
"newfold-labs/wp-module-notifications": "^1.6.8",
"newfold-labs/wp-module-onboarding": "^2.6.2",
"newfold-labs/wp-module-patterns": "^2.9.1",
"newfold-labs/wp-module-performance": "^2.7.5",
"newfold-labs/wp-module-marketplace": "^3.0.2",
"newfold-labs/wp-module-migration": "^1.5.5",
"newfold-labs/wp-module-notifications": "^1.6.12",
"newfold-labs/wp-module-onboarding": "^2.7.4",
"newfold-labs/wp-module-patterns": "^2.9.5",
"newfold-labs/wp-module-performance": "^3.1.6",
"newfold-labs/wp-module-runtime": "^1.1.3",
"newfold-labs/wp-module-secure-passwords": "^1.1.2",
"newfold-labs/wp-module-sso": "^1.1.0",
"newfold-labs/wp-module-staging": "^2.3.0",
"newfold-labs/wp-module-staging": "^2.3.6",
"wp-forge/wp-update-handler": "^1.0.2",
"wp-forge/wp-upgrade-handler": "^1.0"
}
Expand Down
Loading