Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e1db052
Update PHP matrix to PHP 8.2+/WP6.9
kadamwhite Apr 7, 2026
fa5edd8
composer update
kadamwhite Apr 7, 2026
4271d21
Update PHPStan for PHP 8.2/WP 6.9 compatibility
kadamwhite Apr 7, 2026
ff46cd7
PHPStan: Adjust var annotation to fix phpstan mis-analysis
kadamwhite Apr 7, 2026
9c29b04
PHPStan: Explicitly document array type
kadamwhite Apr 7, 2026
6c24a58
PHPStan: WP_Object_Cache::$cache is not nullable, remove isset() check
kadamwhite Apr 7, 2026
ce42703
PHPStan: Raise phpstan memory limit to ensure it will execute
kadamwhite Apr 7, 2026
1e471f9
Update wp-phpunit for 6.9 compatibility
kadamwhite Apr 7, 2026
7f2adbc
PHPStan: Further increase memory limit after memory exhaustion in CI
kadamwhite Apr 7, 2026
cf90ed2
Update PHP/WP version notes in README
kadamwhite Apr 7, 2026
21e6758
Use admin user in guest author created use case, edit_user permission…
kadamwhite Apr 7, 2026
c257f6c
Update and pin setup-php GitHub Action
kadamwhite Apr 7, 2026
75012de
Update actions/checkout
kadamwhite Apr 7, 2026
e091f55
Update actions/cache
kadamwhite Apr 7, 2026
1cce186
Update actions/setup-node
kadamwhite Apr 7, 2026
80ab432
Finish 7.4 -> 8.2 PHP update in CI workflows
kadamwhite Apr 7, 2026
589e3fb
Remove PHPUnit cache result file from VCS
kadamwhite Apr 7, 2026
0f04692
Pin specific SHAs for all GitHub Action dependencies
kadamwhite Apr 7, 2026
75ee5bc
Merge branch 'develop' into modernize-php-matrix
kadamwhite Apr 7, 2026
8c00b7e
Revert "Use admin user in guest author created use case, edit_user pe…
kadamwhite Apr 10, 2026
7432855
Remove GUEST_ROLE assertion: editor cannot see roles on other users s…
kadamwhite Apr 10, 2026
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
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
with:
php-version: 7.4
php-version: 8.2
extensions: mysqli, xmlwriter
coverage: none
tools: composer:v2
Expand All @@ -32,10 +33,10 @@ jobs:

- name: Cache PHP Dependencies
id: composer-cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.composer-cache-dir.outputs.DIR }}
key: ${{ runner.os }}-composer-7.4-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-8.2-${{ hashFiles('composer.lock') }}

- name: Install PHP Dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction
Expand All @@ -49,7 +50,7 @@ jobs:

- name: Cache JS Dependencies
id: npm-cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.npm-cache-dir.outputs.DIR }}
key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.NODE_VERSION }}-${{ steps.npm-cache-dir.outputs.NPM_VERSION }}-${{ hashFiles('package-lock.json') }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Debugging
run: |
Expand All @@ -35,7 +36,7 @@ jobs:

- name: Cache Dependencies
id: npm-cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.npm-cache-dir.outputs.DIR }}
key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.NODE_VERSION }}-${{ steps.npm-cache-dir.outputs.NPM_VERSION }}-${{ hashFiles('package-lock.json') }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/php-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
with:
php-version: '7.4'
php-version: '8.2'
coverage: none

- name: Debugging
Expand All @@ -35,20 +35,20 @@ jobs:

- name: Cache PHP Dependencies
id: composer-cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.composer-cache-dir.outputs.DIR }}
key: ${{ runner.os }}-composer-7.4-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-8.2-${{ hashFiles('composer.lock') }}

- name: Install PHP Dependencies
run: |
composer install --prefer-dist --no-progress --no-suggest --no-interaction

- name: PHPCS cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: tests/cache
key: ${{ runner.os }}-phpcs-7.4-${{ hashFiles('plugin.php') }}
key: ${{ runner.os }}-phpcs-8.2-${{ hashFiles('plugin.php') }}

- name: Run the tests
run: |
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
fail-fast: false
name: WP nightly / PHP ${{ matrix.php }}
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
with:
php-version: ${{ matrix.php }}
extensions: mysqli, xmlwriter
Expand All @@ -44,7 +43,7 @@ jobs:

- name: Cache PHP Dependencies
id: composer-cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.composer-cache-dir.outputs.DIR }}
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@ jobs:
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
fail-fast: false
name: WP 6.6 / PHP ${{ matrix.php }}
name: WP 6.9 / PHP ${{ matrix.php }}
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
with:
php-version: ${{ matrix.php }}
extensions: mysqli, xmlwriter
Expand All @@ -47,10 +46,10 @@ jobs:

- name: Cache PHP Dependencies
id: composer-cache
uses: actions/cache@v4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp6.6
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.lock') }}-wp6.9

- name: Install PHP Dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
# Files:

/tests/.env
.phpunit.result.cache
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Authorship

Stable tag: 0.2.17
Requires at least: 5.4
Tested up to: 6.2
Requires PHP: 7.2
Requires at least: 5.4
Tested up to: 6.9
Requires PHP: 8.2
License: GPL v3 or later
Contributors: johnbillion, humanmade

Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"license": "GPL-3.0-or-later",
"type": "wordpress-plugin",
"require": {
"php": ">=7.2",
"php": ">=8.2",
"composer/installers": "^1.0 || ^2.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "0.7.0",
"ergebnis/composer-normalize": "^2",
"humanmade/coding-standards": "dev-upgrade-wpcs",
"php-stubs/wordpress-stubs": "^5.5",
"php-stubs/wordpress-stubs": "^6.9",
"phpcompatibility/phpcompatibility-wp": "2.1.0",
"phpstan/phpstan": "0.12.57",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^9.5.20",
"roots/wordpress": "~6.6.0",
"szepeviktor/phpstan-wordpress": "0.7.1",
"roots/wordpress": "~6.9.0",
"szepeviktor/phpstan-wordpress": "^2",
"vlucas/phpdotenv": "^3",
"wp-cli/db-command": "^2",
"wp-phpunit/wp-phpunit": "~6.6.0",
"wp-phpunit/wp-phpunit": "~6.9.0",
"yoast/phpunit-polyfills": "^1.0"
},
"repositories": {
Expand All @@ -36,7 +36,7 @@
"roots/wordpress-core-installer": true
},
"platform": {
"php": "7.4"
"php": "8.2"
},
"preferred-install": "dist",
"sort-packages": true
Expand All @@ -58,7 +58,7 @@
"phpcs -p --cache=tests/cache/phpcs ."
],
"test:phpstan": [
"phpstan analyze"
"phpstan analyze --memory-limit=1G"
],
"test:ut": [
"wp db reset --yes --path=tests/wordpress #",
Expand Down
Loading