Compare commits

...

11 commits

Author SHA1 Message Date
renovate[bot]
543d24ccfe
Renovate[bot]: Update dependency phpunit/phpunit to v12 2025-12-01 09:50:56 +00:00
renovate[bot]
f87a6e9571
Renovate[bot]: Update dependency qunit to v2.24.3 (#2220)
Some checks failed
Coding Standards / PHP coding standards (push) Has been cancelled
Coding Standards / Pre-commit checks (push) Has been cancelled
JavaScript Tests / QUnit Tests (push) Has been cancelled
PHP Compatibility / Check PHP compatibility (push) Has been cancelled
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-30 09:38:06 +00:00
renovate[bot]
1c066ab9f7
Renovate[bot]: Update wordpress monorepo (2025-11-26) (#2217)
Some checks are pending
Coding Standards / PHP coding standards (push) Waiting to run
Coding Standards / Pre-commit checks (push) Waiting to run
JavaScript Tests / QUnit Tests (push) Waiting to run
PHP Compatibility / Check PHP compatibility (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 11:35:35 +00:00
Simone Fioravanti
525e584333
Ensure Update URI cannot be bypassed (#2216)
Some checks failed
Coding Standards / PHP coding standards (push) Has been cancelled
Coding Standards / Pre-commit checks (push) Has been cancelled
JavaScript Tests / QUnit Tests (push) Has been cancelled
PHP Compatibility / Check PHP compatibility (push) Has been cancelled
Co-authored-by: xxsimoxx <simone@gieffeedizioni.it>

CP:Props xxsimoxx, sybrew, KTS915, mattyrob

Fixes #2213
2025-11-26 16:23:46 +00:00
Tim Kaye
6d93a6f262
Check mediaCatSelect exists before adding styling (#2208)
* Check for existence of mediaCatSelect before attempting to style it

* Disable delete button when hiding it

---------

Co-authored-by: mattyrob <mattyrobuk@gmail.com>
Co-authored-by: xxsimoxx <simone@gieffeedizioni.it>

CP:Props KTS915, Guido07111975, xxsimoxx

Fixes #2205
2025-11-26 16:05:44 +00:00
renovate[bot]
cd9b7922d1
Renovate[bot]: Update dep wp-coding-standards/wpcs to v3.3.0 (#2215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-26 09:46:18 +00:00
renovate[bot]
4b9e54c39c
Renovate[bot]: Update dependency grunt-webpack to v7.0.1 (#2214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-26 07:59:56 +00:00
Matt Robinson
ff1759863e
Update PHPUnit test matrix for PHP 8.5 (#2197)
Some checks failed
Coding Standards / PHP coding standards (push) Has been cancelled
Coding Standards / Pre-commit checks (push) Has been cancelled
JavaScript Tests / QUnit Tests (push) Has been cancelled
PHP Compatibility / Check PHP compatibility (push) Has been cancelled
* Update PHPUnit test matrix for PHP 8.5

- Add PHP 8.5 to testing matrix
- Bump included tests got newer PHP versions
- Remove experimental jobs

* Add missing comma

CP::Props mattyrob, xxsimoxx
2025-11-23 10:54:26 +00:00
Matt Robinson
061d181fb5
Add condition to Cloudflare bypass step in workflow (#2209)
Some checks are pending
Coding Standards / PHP coding standards (push) Waiting to run
Coding Standards / Pre-commit checks (push) Waiting to run
JavaScript Tests / QUnit Tests (push) Waiting to run
PHP Compatibility / Check PHP compatibility (push) Waiting to run
The Cloudflare bypass action now runs only for non-pull request events or pull requests from non-forked repositories, improving workflow security and efficiency.
2025-11-22 20:43:43 +00:00
renovate[bot]
b5f32d97a3
Renovate[bot]: Update dependency sass to v1.94.2 (#2203)
Some checks are pending
Coding Standards / PHP coding standards (push) Waiting to run
Coding Standards / Pre-commit checks (push) Waiting to run
JavaScript Tests / QUnit Tests (push) Waiting to run
PHP Compatibility / Check PHP compatibility (push) Waiting to run
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 19:10:54 +00:00
renovate[bot]
188196d221
Renovate[bot]: Update actions/checkout action to v6 (#2204)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 18:46:54 +00:00
10 changed files with 89 additions and 113 deletions

View file

@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Set up PHP
uses: shivammathur/setup-php@v2
@ -91,7 +91,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
@ -152,6 +152,7 @@ jobs:
mysql --version

- name: Bypass Cloudflare for GitHub Action
if: ${{ github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false ) }}
uses: xiaotianxt/bypass-cloudflare-for-github-action@v2.0.1
with:
cf_account_id: ${{ secrets.CF_ACCOUNT_ID }}

View file

@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT

View file

@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Set up PHP
uses: shivammathur/setup-php@v2

View file

@ -49,53 +49,47 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.4', '8.3', '8.2', '8.1', '8.0', '7.4' ]
php: [ '8.5', '8.4', '8.3', '8.2', '8.1', '8.0', '7.4' ]
mysql: [ '5.7', '8.0' ]
multisite: [ false, true ]
memcached: [ false ]
coverage: [ none ]
experimental: [ false ]
# Include jobs that test with memcached.
# Include jobs that test with memcached or xdebug.
include:
- php: '8.0'
mysql: '5.7'
multisite: false
memcached: true
coverage: none
experimental: false
- php: '8.2'
mysql: '5.7'
multisite: false
memcached: true
coverage: none
experimental: false
- php: '8.3'
mysql: '5.7'
multisite: false
memcached: true
coverage: none
experimental: false
- php: '8.0'
- php: '8.4'
mysql: '5.7'
multisite: false
memcached: true
coverage: none
experimental: false
- php: '8.3'
mysql: '8.0'
multisite: false
memcached: true
coverage: none
experimental: false
- php: '8.2'
- php: '8.4'
mysql: '8.0'
multisite: false
memcached: true
coverage: none
experimental: false
- php: '8.2'
mysql: '8.0'
- php: '8.3'
mysql: '5.7'
multisite: true
memcached: true
coverage: none
experimental: false
- php: '8.3'
mysql: '8.0'
multisite: false
- php: '8.4'
mysql: '5.7'
multisite: true
memcached: true
coverage: none
experimental: false
@ -105,48 +99,24 @@ jobs:
memcached: true
coverage: none
experimental: false
- php: '8.3'
- php: '8.4'
mysql: '8.0'
multisite: true
memcached: true
coverage: none
experimental: false
- php: '8.4'
mysql: '8.0'
multisite: false
memcached: false
coverage: xdebug
experimental: false
- php: '8.3'
- php: '8.4'
mysql: '8.0'
multisite: true
memcached: false
coverage: xdebug
experimental: false
- php: '8.5'
mysql: '5.7'
multisite: false
memcached: false
coverage: none
experimental: true
- php: '8.5'
mysql: '8.0'
multisite: false
memcached: false
coverage: none
experimental: true
- php: '8.5'
mysql: '5.7'
multisite: true
memcached: false
coverage: none
experimental: true
- php: '8.5'
mysql: '8.0'
multisite: true
memcached: false
coverage: none
experimental: true
- php: '8.5'
mysql: '8.0'
multisite: false
memcached: true
coverage: none
experimental: true

steps:
- name: Configure environment variables
@ -155,7 +125,7 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT

View file

@ -15,7 +15,7 @@ jobs:
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions-ecosystem/action-add-labels@v1
if: github.event.issue.labels[0] == null
with:

View file

@ -15,10 +15,10 @@
"require-dev": {
"composer/ca-bundle": "1.5.9",
"dealerdirect/phpcodesniffer-composer-installer": "1.2.0",
"wp-coding-standards/wpcs": "3.2.0",
"wp-coding-standards/wpcs": "3.3.0",
"phpcompatibility/phpcompatibility-wp": "2.1.8",
"yoast/phpunit-polyfills": "4.0.0",
"phpunit/phpunit": "^9"
"phpunit/phpunit": "^12"
},
"config": {
"allow-plugins": {

80
package-lock.json generated
View file

@ -9,12 +9,12 @@
"version": "2.5.0+dev",
"license": "GPL-2.0+",
"dependencies": {
"@wordpress/a11y": "4.35.0",
"@wordpress/api-fetch": "7.35.0",
"@wordpress/dom-ready": "4.35.0",
"@wordpress/hooks": "4.35.0",
"@wordpress/i18n": "6.8.0",
"@wordpress/url": "4.35.0",
"@wordpress/a11y": "4.36.0",
"@wordpress/api-fetch": "7.36.0",
"@wordpress/dom-ready": "4.36.0",
"@wordpress/hooks": "4.36.0",
"@wordpress/i18n": "6.9.0",
"@wordpress/url": "4.36.0",
"clipboard": "^2.0.11",
"lodash": "^4.17.21",
"mediaelement": "^7.0.7",
@ -41,13 +41,13 @@
"grunt-legacy-util": "2.0.1",
"grunt-rtlcss": "2.0.2",
"grunt-sass": "4.0.1",
"grunt-webpack": "7.0.0",
"grunt-webpack": "7.0.1",
"ink-docstrap": "1.3.2",
"install-changed": "^1.1.0",
"postcss": "8.5.6",
"qunit": "^2.19.4",
"rollup": "4.53.3",
"sass": "1.94.1",
"sass": "1.94.2",
"sinon": "^21.0.0",
"sinon-test": "^3.1.5",
"source-map-loader": "^5.0.0",
@ -1629,13 +1629,13 @@
}
},
"node_modules/@wordpress/a11y": {
"version": "4.35.0",
"resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-4.35.0.tgz",
"integrity": "sha512-37DeBnBU20lLpQjwAZx0fkPsrrXT4COMSRhZOiFifv7wCiNW1DIukfqReAc/yZ6x0wOtqXKA3n905D8zm5NF5A==",
"version": "4.36.0",
"resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-4.36.0.tgz",
"integrity": "sha512-E69wsv1Ye/B3xeVVDCJO4YzHgCSVWjGPTTMe25I8HBjMyJcNvjGTSJkaWJxwRmKNapFJ7pkeVUNwmk5aJ3apWA==",
"license": "GPL-2.0-or-later",
"dependencies": {
"@wordpress/dom-ready": "^4.35.0",
"@wordpress/i18n": "^6.8.0"
"@wordpress/dom-ready": "^4.36.0",
"@wordpress/i18n": "^6.9.0"
},
"engines": {
"node": ">=18.12.0",
@ -1643,13 +1643,13 @@
}
},
"node_modules/@wordpress/api-fetch": {
"version": "7.35.0",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.35.0.tgz",
"integrity": "sha512-jWIhNUVYkUOsVLvGodBhzLe4DR+gCNmh7sm91Vce/79M+DXMtEFLc8jHJ5kXKudnPPTzy29KF1ZzZJ9rm9sqRQ==",
"version": "7.36.0",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.36.0.tgz",
"integrity": "sha512-71yTZi1tSqYbfzT5O+Cx2L2gWpp3y+twdch8mGIzpRmNDz6L/NvntIko7Qmc73tu3dSVC7KakvEmCduOaDNKRQ==",
"license": "GPL-2.0-or-later",
"dependencies": {
"@wordpress/i18n": "^6.8.0",
"@wordpress/url": "^4.35.0"
"@wordpress/i18n": "^6.9.0",
"@wordpress/url": "^4.36.0"
},
"engines": {
"node": ">=18.12.0",
@ -1657,9 +1657,9 @@
}
},
"node_modules/@wordpress/dom-ready": {
"version": "4.35.0",
"resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-4.35.0.tgz",
"integrity": "sha512-u8ifPAFsIAkBG3ehcZdnt+b3t2S0gD3dyDMKgl+GO95wq6kJFqo/NYNQqsjeYUMOFX7cL9D0F2gxiBB4D/AQIA==",
"version": "4.36.0",
"resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-4.36.0.tgz",
"integrity": "sha512-oFhoWcqewtUJ2I3F3YWdrV30LQIPmJgDAgJ+HVt30YSHHBK5Qsb0s0//LeCagkXvXFPXFX2PVyhrq2kq67mqcg==",
"license": "GPL-2.0-or-later",
"engines": {
"node": ">=18.12.0",
@ -1667,9 +1667,9 @@
}
},
"node_modules/@wordpress/hooks": {
"version": "4.35.0",
"resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.35.0.tgz",
"integrity": "sha512-PQcAv/zfMYn5sPScOWDu1vgYkyHaDFt7+1IHvwR0RGE0AdQrdnKjvm6VJ4ALugA+zvJZkBZxLk5Gm+NZGAWIMg==",
"version": "4.36.0",
"resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.36.0.tgz",
"integrity": "sha512-9kB2lanmVrubJEqWDSHtyUx7q4ZAWGArakY/GsUdlFsnf9m+VmQLQl92uCpHWYjKzHec1hwcBhBB3Tu9aBWDtQ==",
"license": "GPL-2.0-or-later",
"engines": {
"node": ">=18.12.0",
@ -1677,13 +1677,13 @@
}
},
"node_modules/@wordpress/i18n": {
"version": "6.8.0",
"resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-6.8.0.tgz",
"integrity": "sha512-lNMjf0VXWm2qzkEI+v1psvb26FN+B32sO6nLOFxs5Lay/E0WVqCw31DiRw8nETlzVwsMheO+iy0lCSOLvg+jog==",
"version": "6.9.0",
"resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-6.9.0.tgz",
"integrity": "sha512-ke4BPQUHmj82mwYoasotKt3Sghf0jK4vec56cWxwnzUvqq7LMy/0H7F5NzJ4CY378WS+TOdLbqmIb4sj+f7eog==",
"license": "GPL-2.0-or-later",
"dependencies": {
"@tannin/sprintf": "^1.3.2",
"@wordpress/hooks": "^4.35.0",
"@wordpress/hooks": "^4.36.0",
"gettext-parser": "^1.3.1",
"memize": "^2.1.0",
"tannin": "^1.2.0"
@ -1697,9 +1697,9 @@
}
},
"node_modules/@wordpress/url": {
"version": "4.35.0",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.35.0.tgz",
"integrity": "sha512-h6KK0OePnc64T50BwVWmQb7xmcMW0XDtfh+1m/a0tlzXGLU4TnBjUUs+a0h0y6Tdla14lc2BtbLJLFwky06vbg==",
"version": "4.36.0",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.36.0.tgz",
"integrity": "sha512-b61pCnJCjaxIiiH/+leR3IVZlKUlSP/PnYCFg1cLa9Qv8TQBr5REnmtBDnrfNzaHEP7uE+A81BJe5lVFP/AQgw==",
"license": "GPL-2.0-or-later",
"dependencies": {
"remove-accents": "^0.5.0"
@ -7024,9 +7024,9 @@
}
},
"node_modules/grunt-webpack": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/grunt-webpack/-/grunt-webpack-7.0.0.tgz",
"integrity": "sha512-HjeKSoE94ZNAqLLBT/Iwew6MoUpyBpRDGIofrO51Btl+X7RzRXh7ERUm844RzOQuFF2IQ51MxsfC1zb7ylJ8XA==",
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/grunt-webpack/-/grunt-webpack-7.0.1.tgz",
"integrity": "sha512-3Mo0UfZE7v5CnSCIkN6tGMlKDOCr0okvk8SQrL9X/6JhrE2sQlGwFEI5Q6j89rZ9DTl9jEjkIev/hfR0x85wKg==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -10643,9 +10643,9 @@
"license": "MIT"
},
"node_modules/qunit": {
"version": "2.24.2",
"resolved": "https://registry.npmjs.org/qunit/-/qunit-2.24.2.tgz",
"integrity": "sha512-dWlYs+Q9AIDT3eHKgkpEpWrSjHjqTJNCAJr1tUo5bQuDMzlZvaqCz1bNZhqzNu41ibkIQ7b50S9y6IMlrrUfNQ==",
"version": "2.24.3",
"resolved": "https://registry.npmjs.org/qunit/-/qunit-2.24.3.tgz",
"integrity": "sha512-JTHwSfHf2Cw8TqusZo2tT4F9d+XA/pp/veoxUDiPNHtB1Wc1VPctiHHIv6HA3vrXNOBu9LSzFM7YU2OV9Gz4vQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -11278,9 +11278,9 @@
}
},
"node_modules/sass": {
"version": "1.94.1",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.94.1.tgz",
"integrity": "sha512-/YVm5FRQaRlr3oNh2LLFYne1PdPlRZGyKnHh1sLleOqLcohTR4eUUvBjBIqkl1fEXd1MGOHgzJGJh+LgTtV4KQ==",
"version": "1.94.2",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.94.2.tgz",
"integrity": "sha512-N+7WK20/wOr7CzA2snJcUSSNTCzeCGUTFY3OgeQP3mZ1aj9NMQ0mSTXwlrnd89j33zzQJGqIN52GIOmYrfq46A==",
"dev": true,
"license": "MIT",
"dependencies": {

View file

@ -28,13 +28,13 @@
"grunt-legacy-util": "2.0.1",
"grunt-rtlcss": "2.0.2",
"grunt-sass": "4.0.1",
"grunt-webpack": "7.0.0",
"grunt-webpack": "7.0.1",
"ink-docstrap": "1.3.2",
"install-changed": "^1.1.0",
"postcss": "8.5.6",
"qunit": "^2.19.4",
"rollup": "4.53.3",
"sass": "1.94.1",
"sass": "1.94.2",
"sinon": "^21.0.0",
"sinon-test": "^3.1.5",
"source-map-loader": "^5.0.0",
@ -43,12 +43,12 @@
"webpack": "5.103.0"
},
"dependencies": {
"@wordpress/a11y": "4.35.0",
"@wordpress/api-fetch": "7.35.0",
"@wordpress/dom-ready": "4.35.0",
"@wordpress/hooks": "4.35.0",
"@wordpress/i18n": "6.8.0",
"@wordpress/url": "4.35.0",
"@wordpress/a11y": "4.36.0",
"@wordpress/api-fetch": "7.36.0",
"@wordpress/dom-ready": "4.36.0",
"@wordpress/hooks": "4.36.0",
"@wordpress/i18n": "6.9.0",
"@wordpress/url": "4.36.0",
"clipboard": "^2.0.11",
"lodash": "^4.17.21",
"mediaelement": "^7.0.7",

View file

@ -1037,14 +1037,19 @@ document.addEventListener( 'DOMContentLoaded', function() {
e.target.textContent = 'Bulk select';
dateFilter.style.display = '';
typeFilter.style.display = '';
mediaCatSelect.style.display = '';
if ( mediaCatSelect ) {
mediaCatSelect.style.display = '';
}
deleteButton.classList.add( 'hidden' );
deleteButton.disabled = true;
toolbar.classList.remove( 'media-toolbar-mode-select' );
} else {
e.target.textContent = 'Cancel';
dateFilter.style.display = 'none';
typeFilter.style.display = 'none';
mediaCatSelect.style.display = 'none';
if ( mediaCatSelect ) {
mediaCatSelect.style.display = 'none';
}
deleteButton.classList.remove( 'hidden' );
toolbar.classList.add( 'media-toolbar-mode-select' );


View file

@ -409,7 +409,7 @@ function wp_update_plugins( $extra_stats = array() ) {

// Support updates for any plugins using the `Update URI` header field.
foreach ( $plugins as $plugin_file => $plugin_data ) {
if ( ! $plugin_data['UpdateURI'] || isset( $updates->response[ $plugin_file ] ) ) {
if ( ! $plugin_data['UpdateURI'] ) {
continue;
}

@ -689,7 +689,7 @@ function wp_update_themes( $extra_stats = array() ) {

// Support updates for any themes using the `Update URI` header field.
foreach ( $themes as $theme_stylesheet => $theme_data ) {
if ( ! $theme_data['UpdateURI'] || isset( $new_update->response[ $theme_stylesheet ] ) ) {
if ( ! $theme_data['UpdateURI'] ) {
continue;
}