diff --git a/.distignore b/.distignore
index f3f311f..8be27e9 100644
--- a/.distignore
+++ b/.distignore
@@ -4,13 +4,11 @@
/.cache
/node_modules
/tests
-/grunt
.phpcs.xml.dist
.distignore
.gitignore
.removeable-files
-Gruntfile.js
package.json
phpmd.xml
phpunit.xml.dist
diff --git a/.gitattributes b/.gitattributes
index e8ba742..d0da41d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -11,7 +11,6 @@
.gitignore export-ignore
.phpcs.xml.dist export-ignore
.removable-files export-ignore
-Gruntfile.js export-ignore
package.json export-ignore
phpmd.xml export-ignore
phpunit.xml.dist export-ignore
@@ -19,7 +18,6 @@ readme.md export-ignore
yarn.lock export-ignore
/.cache export-ignore
/.github export-ignore
-/grunt export-ignore
/.wordpress-org export-ignore
/tests export-ignore
diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml
deleted file mode 100644
index 1aaf7de..0000000
--- a/.github/workflows/js.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-name: CheckJS
-
-on:
- # Run on pushes to select branches and on all pull requests.
- push:
- branches:
- - main
- - trunk
- - 'release/**'
- - 'hotfix/[0-9]+.[0-9]+*'
- pull_request:
- # Allow manually triggering the workflow.
- workflow_dispatch:
-
-# Cancels all previous workflow runs for the same branch that have not yet completed.
-concurrency:
- # The concurrency group contains the workflow name and the branch name.
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-jobs:
- grunt:
- runs-on: ubuntu-latest
-
- name: "CheckJS"
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- # The ubuntu images come with Node, npm and yarn pre-installed.
- # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
-
- # This action also handles the caching of the Yarn dependencies.
- # https://github.com/actions/setup-node
- - name: Set up node and enable caching of dependencies
- uses: actions/setup-node@v4
- with:
- node-version: '14'
- cache: 'yarn'
-
- - name: Yarn install
- run: yarn install
-
- - name: Show debug info
- run: |
- npm --version
- node --version
- yarn --version
- grunt --version
-
- - name: Run Grunt JS tasks
- run: grunt check:js
-
- - name: Run Grunt I18n tasks
- run: grunt check:i18n
diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml
new file mode 100644
index 0000000..a39814b
--- /dev/null
+++ b/.github/workflows/playground.yml
@@ -0,0 +1,16 @@
+name: Playground Comment
+
+on:
+ pull_request:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ steps:
+ - uses: mshick/add-pr-comment@v2
+ with:
+ message: |
+ ## WordPress Playground
+ You can easily [test this pull request on the WordPress Playground](https://playground.wordpress.net/#{"landingPage":"/wp-admin/","features":{"networking":true},"steps":[{"step":"defineWpConfigConsts","consts":{"IS_PLAYGROUND_PREVIEW":true}},{"step":"login","username":"admin","password":"password"},{"step":"installPlugin","pluginZipFile":{"resource":"url","url":"https://bypass-cors.altha.workers.dev/${{ github.server_url }}/${{ github.repository }}/archive/${{ github.sha }}.zip"},"options":{"activate":true}}]}).
diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index 45a4621..d7f8668 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -14,6 +14,12 @@
.
+
+
+
+ *\.php$
+
+
@@ -36,8 +42,8 @@
-->
-
-
+
+
+
+
+
+
+