Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
65de851
New: add filters to widen action schedulers cleanup
DanielHudson2 Oct 9, 2025
ef9bff1
New: copy config from plugin template
DanielHudson2 Oct 22, 2025
a2ac4ff
New: lefthook config
DanielHudson2 Oct 22, 2025
6483b37
Tidy: remove settings.js
DanielHudson2 Oct 22, 2025
1e66e0d
New: move initialisation into Plugin class
DanielHudson2 Oct 22, 2025
f51136a
Tidy: package formatting
DanielHudson2 Oct 22, 2025
4ffcbde
New: initialise classes on init within themselves
DanielHudson2 Oct 23, 2025
8314cdb
New: documenting returns
DanielHudson2 Oct 23, 2025
dd31f81
New: removed activation and deactivation hooks
DanielHudson2 Oct 23, 2025
5aa9e94
New: add new caps for privacy policy
DanielHudson2 Oct 23, 2025
e6293f6
New: remove css and js building + node
DanielHudson2 Oct 24, 2025
70dfcc7
Merge pull request #25 from eighteen73/feature/rework-using-plugin-te…
brettsmason Oct 24, 2025
798fce0
Fix return type
brettsmason Oct 24, 2025
c430abf
Merge branch 'main' into feature/action-scheduler-filters
edjeavons Oct 29, 2025
44cbd55
Set action scheduler retention period to two weeks
edjeavons Oct 29, 2025
731a348
Composer update
edjeavons Oct 29, 2025
b1de091
Exclude lib from phpcs tests
edjeavons Oct 29, 2025
112a7b7
Apply preferred PHP workflow actions
edjeavons Oct 29, 2025
f188ea7
Merge pull request #24 from eighteen73/feature/action-scheduler-filters
brettsmason Oct 30, 2025
7eaaf5c
New: add new caps for privacy policy
DanielHudson2 Oct 23, 2025
ef48531
New: split caps into its own file
DanielHudson2 Oct 30, 2025
f624335
Merge branch 'feature/add-privacy-policy-permissions-to-editors' of g…
DanielHudson2 Oct 30, 2025
ce33f14
New: add new class into Plugin class
DanielHudson2 Oct 30, 2025
9b3a259
Tidy: remove unneeded caps from this class
DanielHudson2 Oct 30, 2025
10b0884
New: remove meta cap from manage_privacy_options for roles
DanielHudson2 Oct 30, 2025
f1ac3a3
Update file comment
brettsmason Oct 30, 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
6 changes: 1 addition & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{.jshintrc,*.json,*.yml}]
[*.{yml,yaml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
vendor
node_modules
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@eighteen73/eslint-config-wordpress"]
}
27 changes: 27 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Directories
/.git export-ignore
/.github export-ignore
/.husky export-ignore
/.vscode export-ignore
/node_modules export-ignore
/src export-ignore
/tests export-ignore

# Files
/.* export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/composer.json export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/CREDITS.md export-ignore
/DEVELOPERS.md export-ignore
/lefthook.yml export-ignore
/LICENSE.md export-ignore
/package-lock.json export-ignore
/package.json export-ignore
/phpcs.xml.dist export-ignore
/postcss.config.js export-ignore
/README.md export-ignore
/tsconfig.json export-ignore
/webpack.config.js export-ignore
54 changes: 28 additions & 26 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
name: PHP Composer
name: PHP Checks

on:
push:
branches: [ "main" ]
branches: ["trunk"]
pull_request:
branches: [ "main" ]
branches: ["trunk"]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
run: composer run-script test
- uses: actions/checkout@v3

- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
tools: composer:v2

- name: Validate Root composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install Root dependencies
run: composer install --prefer-dist --no-progress

- name: Run PHPCS
run: composer lint
56 changes: 50 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,53 @@
# Composer
vendor/

# Lock files
composer.lock
# Operating System files
.DS_Store
Thumbs.db

# Local files
# IDE files
.idea
.DS_Store
.vscode/*

# Sass
.sass-cache/

# Logs
logs/

# Environment files
wp-cli.local.yml
yarn-error.log
npm-debug.log
.pnpm-debug.log

# Build files
*.sql
*.swp
*.zip

# Built packages
build/
build-module/
build-style/
build-types/
dist/

# Project files
node_modules/
vendor/

# TypeScript files
tsconfig.tsbuildinfo

# Node Package Dependencies
package-lock.json

# wp-env config
.wp-env.override.json

# Unit tests
tmp/

# Composer
vendor/
bin/composer/**/vendor/
lib/vendor/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
vendor
node_modules
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@wordpress/prettier-config"
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
vendor
node_modules
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@eighteen73/stylelint-config-wordpress"
}
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
}
},
"scripts": {
"test": [
"phpcs"
],
"lint": "./vendor/bin/phpcs",
"format": "./vendor/bin/phpcbf",
"post-install-cmd": [
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
Expand Down
Loading