Felix Arntz b8800da735
Some checks failed
Cleanup Pull Requests / Clean up pull requests (push) Waiting to run
Coding Standards / PHP coding standards (push) Waiting to run
Coding Standards / JavaScript coding standards (push) Waiting to run
Coding Standards / Slack Notifications (push) Blocked by required conditions
Coding Standards / Failed workflow tasks (push) Blocked by required conditions
End-to-end Tests / Test with SCRIPT_DEBUG disabled (push) Waiting to run
End-to-end Tests / Test with SCRIPT_DEBUG enabled (push) Waiting to run
End-to-end Tests / Slack Notifications (push) Blocked by required conditions
End-to-end Tests / Failed workflow tasks (push) Blocked by required conditions
JavaScript Tests / QUnit Tests (push) Waiting to run
JavaScript Tests / Slack Notifications (push) Blocked by required conditions
JavaScript Tests / Failed workflow tasks (push) Blocked by required conditions
Performance Tests / Determine Matrix (push) Waiting to run
Performance Tests / ${{ matrix.multisite && 'Multisite' || 'Single Site' }} ${{ matrix.memcached && 'Memcached' || 'Default' }} (push) Blocked by required conditions
Performance Tests / Compare (push) Blocked by required conditions
Performance Tests / Slack Notifications (push) Blocked by required conditions
Performance Tests / Failed workflow tasks (push) Blocked by required conditions
PHP Compatibility / Check PHP compatibility (push) Waiting to run
PHP Compatibility / Slack Notifications (push) Blocked by required conditions
PHP Compatibility / Failed workflow tasks (push) Blocked by required conditions
PHPUnit Tests / PHP 7.2 (push) Waiting to run
PHPUnit Tests / PHP 7.3 (push) Waiting to run
PHPUnit Tests / PHP 7.4 (push) Waiting to run
PHPUnit Tests / PHP 8.0 (push) Waiting to run
PHPUnit Tests / PHP 8.1 (push) Waiting to run
PHPUnit Tests / PHP 8.2 (push) Waiting to run
PHPUnit Tests / PHP 8.3 (push) Waiting to run
PHPUnit Tests / PHP 8.4 (push) Waiting to run
PHPUnit Tests / html-api-html5lib-tests (push) Waiting to run
PHPUnit Tests / Slack Notifications (push) Blocked by required conditions
PHPUnit Tests / Failed workflow tasks (push) Blocked by required conditions
Test Build Processes / Core running from build (push) Waiting to run
Test Build Processes / Core running from src (push) Waiting to run
Test Build Processes / Gutenberg running from build (push) Waiting to run
Test Build Processes / Gutenberg running from src (push) Waiting to run
Test Build Processes / Slack Notifications (push) Blocked by required conditions
Test Build Processes / Failed workflow tasks (push) Blocked by required conditions
Upgrade Develop Version Tests / Build (push) Waiting to run
Upgrade Develop Version Tests / Upgrade from 6.5 (push) Blocked by required conditions
Upgrade Develop Version Tests / Upgrade from 6.6 (push) Blocked by required conditions
Upgrade Develop Version Tests / Upgrade from 6.7 (push) Blocked by required conditions
Upgrade Develop Version Tests / Slack Notifications (push) Blocked by required conditions
Upgrade Develop Version Tests / Failed workflow tasks (push) Blocked by required conditions
Test old branches / coding-standards.yml for 4.1 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.1 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.1 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.1 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.2 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.2 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.2 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.2 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.3 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.3 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.3 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.3 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.4 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.4 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.4 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.4 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.5 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.5 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.5 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.5 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.6 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.6 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.6 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.6 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.7 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.7 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.7 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.7 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.8 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.8 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.8 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.8 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.9 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.9 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.9 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.9 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.0 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.0 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.0 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.0 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.1 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.1 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.1 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.1 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.2 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.2 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.2 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.2 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.3 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.3 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.3 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.3 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.4 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.4 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.4 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.4 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.5 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.5 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.5 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.5 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.5 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.6 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.6 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.6 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.6 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.6 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.7 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.7 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.7 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.7 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.7 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.8 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 5.8 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.8 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.8 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.8 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.8 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.9 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 5.9 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.9 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.9 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.9 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.9 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.0 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.0 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.0 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.0 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.0 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.0 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.1 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.1 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.1 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.1 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.1 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.1 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.2 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.2 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.2 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.2 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.2 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.2 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.3 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.3 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.3 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.3 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.3 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.3 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.4 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.4 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.4 (push) Has been cancelled
Test old branches / performance.yml for 6.4 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.4 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.4 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.4 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.5 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.5 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.5 (push) Has been cancelled
Test old branches / performance.yml for 6.5 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.5 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.5 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.5 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.6 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.6 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.6 (push) Has been cancelled
Test old branches / performance.yml for 6.6 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.6 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.6 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.6 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.7 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.7 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.7 (push) Has been cancelled
Test old branches / performance.yml for 6.7 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.7 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.7 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.7 (push) Has been cancelled
Test old branches / Slack Notifications (push) Has been cancelled
Editor: Introduce wp_should_load_block_assets_on_demand() with filter 'should_load_block_assets_on_demand'.
This function and filter complement the existing `wp_should_load_separate_core_block_assets()` with filter `'should_load_separate_core_block_assets'`, which until now was responsible for two different purposes:
1. Loading separate stylesheets for Core blocks, instead of a combined `wp-block-library` stylesheet (as the name indicates).
2. Loading block scripts and stylesheets on demand only if the blocks are included in the page (not indicated by the name).

The new function and filter handles exclusively the 2nd purpose, making it possible to individually adjust both behaviors. For backward compatibility, the return value of `wp_should_load_separate_core_block_assets()` is used as the filterable default for `wp_should_load_block_assets_on_demand()`. Yet, the two filters can now be individually be controlled: For example, a site owner that wants to keep loading the combined `wp-block-library` stylesheet can now do so without giving up on the ability to load block scripts and stylesheets on demand.

Block themes now opt in by default to both features, similar to how they were already doing before via just the one filter. This way, block themes that opt out of loading separate stylesheets for Core blocks will still benefit from loading block scripts and stylesheets on demand, which in the case of block themes is strongly recommended.

Props fabiankaegy, flixos90, gziolo.
Fixes #61965.


git-svn-id: https://develop.svn.wordpress.org/trunk@59823 602fd350-edb4-49c9-b593-d223f7449a82
2025-02-14 18:36:48 +00:00
..