49282 Commits

Author SHA1 Message Date
Jonathan Desrosiers
d3424344cd Build/Test Tools: Pin Gutenberg version for 6.5 branch.
Some checks failed
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.3) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, false, ubuntu-latest, 7.4) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, true, ubuntu-latest, 7.4) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, ubuntu-latest, ${{ github.event_name == 'pull_request' && true || '' }}, true) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, windows-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, windows-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, macos-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, macos-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, windows-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, windows-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, macos-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, macos-latest) (push) Has been cancelled
Coding Standards / Slack Notifications (push) Has been cancelled
Coding Standards / Failed workflow tasks (push) Has been cancelled
End-to-end Tests / Slack Notifications (push) Has been cancelled
End-to-end Tests / Failed workflow tasks (push) Has been cancelled
JavaScript Tests / Slack Notifications (push) Has been cancelled
JavaScript Tests / Failed workflow tasks (push) Has been cancelled
Performance Tests / Slack Notifications (push) Has been cancelled
Performance Tests / Failed workflow tasks (push) Has been cancelled
PHP Compatibility / Slack Notifications (push) Has been cancelled
PHP Compatibility / Failed workflow tasks (push) Has been cancelled
PHPUnit Tests / Slack Notifications (push) Has been cancelled
PHPUnit Tests / Failed workflow tasks (push) Has been cancelled
Test Build Processes / Leave WordPress Playground details (push) Has been cancelled
Test Build Processes / Slack Notifications (push) Has been cancelled
Test Build Processes / Failed workflow tasks (push) Has been cancelled
The minimum required version of WordPress for the Gutenberg plugin as of version 19.8.0 is now 6.6. This pins the final version that supported WordPress 6.5 to ensure E2E tests continue to pass.

Props bernhard-reiter.
Fixes 62488.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@59518 602fd350-edb4-49c9-b593-d223f7449a82
2024-12-16 14:37:49 +00:00
Peter Wilson
f008049c49 Tests: Use better domain for HTTP API invalid hostname test.
Some checks failed
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.3) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, false, ubuntu-latest, 7.4) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, true, ubuntu-latest, 7.4) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, ubuntu-latest, ${{ github.event_name == 'pull_request' && true || '' }}, true) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, windows-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, windows-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, macos-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, macos-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, windows-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, windows-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, macos-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, macos-latest) (push) Has been cancelled
Coding Standards / Slack Notifications (push) Has been cancelled
Coding Standards / Failed workflow tasks (push) Has been cancelled
End-to-end Tests / Slack Notifications (push) Has been cancelled
End-to-end Tests / Failed workflow tasks (push) Has been cancelled
JavaScript Tests / Slack Notifications (push) Has been cancelled
JavaScript Tests / Failed workflow tasks (push) Has been cancelled
Performance Tests / Slack Notifications (push) Has been cancelled
Performance Tests / Failed workflow tasks (push) Has been cancelled
PHP Compatibility / Slack Notifications (push) Has been cancelled
PHP Compatibility / Failed workflow tasks (push) Has been cancelled
PHPUnit Tests / Slack Notifications (push) Has been cancelled
PHPUnit Tests / Failed workflow tasks (push) Has been cancelled
Test Build Processes / Leave WordPress Playground details (push) Has been cancelled
Test Build Processes / Slack Notifications (push) Has been cancelled
Test Build Processes / Failed workflow tasks (push) Has been cancelled
The previous domain that was used to test for a host whose IPv4 address cannot be resolved, `exampleeeee.com`, got registered and has an A-record now, so it's not invalid anymore.

`.invalid` is intended for use in online construction of domain names that are sure to be invalid and which it is obvious at a glance are invalid.

Reference: [https://datatracker.ietf.org/doc/html/rfc2606#section-2 Reserved Top Level DNS Names: TLDs for Testing, & Documentation Examples].

Follow-up to [52084], [58384], [58388].

Reviewed by peterwilsoncc.
Merges test changes from [59293] to the 6.5 branch.

Props sippis, johnbillion, MattyRob, swissspidy, SergeyBiryukov.
Fixes #62303.




git-svn-id: https://develop.svn.wordpress.org/branches/6.5@59299 602fd350-edb4-49c9-b593-d223f7449a82
2024-10-27 22:55:24 +00:00
Adam Silverstein
76ddb650b7 Revert r59136 from the 6.5 branch, this is intended for trunk.
Some checks failed
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.3) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, false, ubuntu-latest, 7.4) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, true, ubuntu-latest, 7.4) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, ubuntu-latest, ${{ github.event_name == 'pull_request' && true || '' }}, true) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, windows-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, windows-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, macos-latest) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, macos-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, windows-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, windows-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, macos-latest) (push) Has been cancelled
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, macos-latest) (push) Has been cancelled
Coding Standards / Slack Notifications (push) Has been cancelled
Coding Standards / Failed workflow tasks (push) Has been cancelled
End-to-end Tests / Slack Notifications (push) Has been cancelled
End-to-end Tests / Failed workflow tasks (push) Has been cancelled
JavaScript Tests / Slack Notifications (push) Has been cancelled
JavaScript Tests / Failed workflow tasks (push) Has been cancelled
Performance Tests / Slack Notifications (push) Has been cancelled
Performance Tests / Failed workflow tasks (push) Has been cancelled
PHP Compatibility / Slack Notifications (push) Has been cancelled
PHP Compatibility / Failed workflow tasks (push) Has been cancelled
PHPUnit Tests / Slack Notifications (push) Has been cancelled
PHPUnit Tests / Failed workflow tasks (push) Has been cancelled
Test Build Processes / Leave WordPress Playground details (push) Has been cancelled
Test Build Processes / Slack Notifications (push) Has been cancelled
Test Build Processes / Failed workflow tasks (push) Has been cancelled
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@59144 602fd350-edb4-49c9-b593-d223f7449a82
2024-09-30 23:48:49 +00:00
Adam Silverstein
108369e029 Media: improve support for lossless WebP.
Some checks are pending
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, false, ubuntu-latest, 8.2) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, false, ubuntu-latest, 8.3) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 7.0) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 7.1) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 7.2) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 7.3) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 7.4) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.0) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.1) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.2) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, false, true, ubuntu-latest, 8.3) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, false, ubuntu-latest, 7.4) (push) Waiting to run
PHPUnit Tests / PHP ${{ matrix.php }} (mariadb, 11.2, true, true, ubuntu-latest, 7.4) (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 ${{ matrix.directory }} (build, ubuntu-latest, ${{ github.event_name == 'pull_request' && true || '' }}, true) (push) Waiting to run
Test Build Processes / Core running from ${{ matrix.directory }} (build, windows-latest) (push) Waiting to run
Test Build Processes / Core running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Waiting to run
Test Build Processes / Core running from ${{ matrix.directory }} (src, windows-latest) (push) Waiting to run
Test Build Processes / Core running from ${{ matrix.directory }} (build, macos-latest) (push) Waiting to run
Test Build Processes / Core running from ${{ matrix.directory }} (src, macos-latest) (push) Waiting to run
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, ubuntu-latest) (push) Waiting to run
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, windows-latest) (push) Waiting to run
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, ubuntu-latest) (push) Waiting to run
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, windows-latest) (push) Waiting to run
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (build, macos-latest) (push) Waiting to run
Test Build Processes / Gutenberg running from ${{ matrix.directory }} (src, macos-latest) (push) Waiting to run
Test Build Processes / Leave WordPress Playground details (push) Blocked by required conditions
Test Build Processes / Slack Notifications (push) Blocked by required conditions
Test Build Processes / Failed workflow tasks (push) Blocked by required conditions
When uploading lossless WebP images, WordPress now correctly outputs lossless WebP with both the Imagick and GD image editors.

Props: adamsilverstein, martinkrcho.
Fixes #60291.




git-svn-id: https://develop.svn.wordpress.org/branches/6.5@59136 602fd350-edb4-49c9-b593-d223f7449a82
2024-09-30 18:37:05 +00:00
Aaron Jorbin
366c8e5206 Filesystem: Normalize allowed_files so comparison is apples to apples.
In [58470] a change was made to normalize the filename in validate_file, however this leads to instances where the list of files that are allowed aren't normalized such as in the theme editor. By normalizing the array, the comparison is apples to apples.

Reviewed by hellofromTonya.
Merges 58570 to the 6.5 branch.

Fixes #61488.
Props jorbin, hellofromtonya, swissspidy, misulicus, script2see, Presskopp, audrasjb, peterwilsoncc, siliconforks, littler.chicken, paulkevan,


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58808 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-25 16:33:50 +00:00
Jonathan Desrosiers
c26d2a30d5 Build/Test Tools: Change 6.5 default values of LOCAL_PHP/LOCAL_DB_VERSION.
This changes the default values for `LOCAL_PHP` and `LOCAL_DB_VERSION` in the 6.5 branch from `latest` to `8.3-fpm` (with beta support) and `8.0`, respectively, to properly reflect the highest versions of PHP and MySQL that this branch will support.

See #61533.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58658 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-03 17:24:20 +00:00
Jonathan Desrosiers
36102f707b Build/Test Tools: Update the reusable PHPUnit workflow name.
Follow up to [58645] for the 6.5 branch.

Props jorbin.
See #61213.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58647 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-03 15:56:04 +00:00
Aaron Jorbin
5ff4402bae Post WordPress 6.5.5 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58587 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-27 14:38:03 +00:00
Jb Audras
e8fed338f8 WordPress 6.5.5.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58502 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 16:03:05 +00:00
Aaron Jorbin
c247767557 Update packages for 6.5 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58477 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 15:12:11 +00:00
Jb Audras
38e3573764 Grouped Backports to the 6.5 branch.
- Editor: Fix Path Traversal issue on Windows in Template-Part Block.
- Editor: Sanitize Template Part HTML tag on save.
- HTML API: Run URL attributes through `esc_url()`.

Merges [58470], [58471], [58472] and [58473] to the 6.5 branch.
Props xknown, peterwilsoncc, jorbin, bernhard-reiter, azaozz, dmsnell, gziolo.




git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58474 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 15:02:41 +00:00
Tonya Mork
fe2c90a9b8 Editor (Font Library): Store font subdirectory in post meta.
Stores the font file sub-directory in the `wp_font_face` post meta. Similar to attachments, only the portion of the path relative to the base directory is stored.

This ensures the files can be deleted alongside their post on sites using a plugin to store font files in sub-directories. Previously running such a plugin would result in the files remaining on the file system post delete.

Reviewed by hellofromTonya.
Merges [58353] to the 6.5 branch.

Props costdev, grantmkin, peterwilsoncc.
Fixes #61297.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58448 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 16:28:55 +00:00
Tonya Mork
2e3d4ad1cf Plugins: Ensure wp_get_plugin_action_button() returns a string.
[57545] introduced `wp_get_plugin_action_button()`. This function is documented to return a `string`. However, if the user does not have the appropriate capabilities, it returned `void`, which is unexpected.

Resolves the issue by moving the `return $button` to the bottom of the function to ensure it always returns a `string` type. On success, the button's HTML string is returned; else, an empty string is returned.

Unit tests are included.

Follow-up to [57545].

Reviewed by jorbin.
Merges [58396] to the 6.5 branch.

Props costdev, rajinsharwar, hellofromTonya.
Fixes #61400.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58445 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-20 15:28:49 +00:00
Tonya Mork
a0a821c081 Plugins: Remove unassigned sprintf in wp_get_plugin_action_button().
Removes an unassigned `sprintf` that was accidentally included as part of [57545] in the `wp_get_plugin_action_button()`. A copy/paste whoopsie.

The actual used code is assigned a wee bit lower in the function within the install case.

Follow-up to [57545].

Reviewed by jorbin.
Merges [58402] to the 6.5 branch.

Props hellofromTonya, costdev, rajinsharwar.
Fixes #61420.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58404 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-13 13:52:06 +00:00
Jonathan Desrosiers
9d11cee11e Build/Test Tools: Always generate build ZIP on push for 6.5.
This updates the 6.5 branch to make use of [58345], which fixes a bug where a ZIP file with built WordPress is not saved as an artifact causing the performance workflow to fail.

Merges [53845] to the 6.5 branch.

Props jorbin.
See #60095.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58346 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-05 18:30:03 +00:00
Aaron Jorbin
3c7ba66407 Post WordPress 6.5.4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58344 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-05 16:20:36 +00:00
Tonya Mork
52f010ca63 Bump 6.5 branch to version 6.5.4.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58342 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-05 15:11:38 +00:00
Tonya Mork
30efc6005d Post WordPress 6.5.4 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58260 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 18:23:59 +00:00
Tonya Mork
74b282a995 WordPress 6.5.4 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58259 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 18:08:11 +00:00
Tonya Mork
87999b0259 Plugins: Revert r58083 show an admin notice on successful activation.
With a new direction in the 6.5.4 to restore the Activate button's href (see #61319 / [58250]), the changesets committed for 6.5.3 (see #60992) are now dead code and will not render the admin notice on successful plugin activation.

This commit is a clean revert of r58083.

Follow-up to [58250], [58257].

Reviewed by jorbin.
Reverts [58083] on the 6.5 branch.

Props swissspidy, azaozz, costdev, jorbin, hellofromTonya, afragen.
Fixes #61331.
See #60992.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58258 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 17:24:44 +00:00
Tonya Mork
bbee9df1e4 Plugin Dependencies: Ensure dependency detection for newly installed plugins.
Resolves a bug by first initializing in the AJAX callback `WP_Plugin_Dependencies::check_plugin_dependencies_during_ajax()`.

More details:

[57658] removed auto-deactivation and bootstrapping logic from the Plugin Dependencies feature. In doing so, initialization calls were added to various locations in Core to ensure dependencies were detected and ready to be checked. However, an initialization call was missed in the AJAX callback before checking plugin dependencies.

This means that a plugin's dependencies may not be detected, and lead to a false positive, which in turn allows the user to click Activate only to see a failure message.

Follow-up to [57658].

Reviewed by jorbin.
Merges [58252] to the 6.5 branch.

Props kevinwhoffman, costdev, afragen.
Fixes #61294.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58255 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 16:19:27 +00:00
Tonya Mork
ae81c4f0fa Upgrade/Install: Restore Activate button's href native behavior.
Restores the Activate button's `href` native behavior by changing the AJAX activation handler introduced in 6.5.0. It restores the pre-6.5 behavior of clicking the "Activate" button, i.e. navigates the user to the button's `href` (i.e. to the `plugins.php` UI).

Why?

Feedback was given after shipping [57545] in 6.5.0 (but was unknown during the development and testing cycles) revealed significant impacts for plugins who's users valued the onboarding / configuration experiences.

6.5.3's [58081] and [58083] added a new user action / step to the workflow. Though helpful, it did not fully resolve the impacts.

For the minor, this commit seeks to restore only the "Activate" button's `href` pre-6.5 native behavior to resolve the regression.

The next phase of the Add Plugins workflow can then continue in a major release to gain the benefits of a full major to move it from ideation through the development phases. (See #61040). The questions of redirect, how / should configuration be in the workflow, etc. can best be explored and experimented with in a major.

Follow-up to [57545], [58081], [58083].

Reviewed by jorbin.
Merges [58250] to the 6.5 branch.

Props costdev, jorbin, hellofromTonya, afragen, kevinwhoffman, azaozz, adrianduffell, beaulebens, hmbashar, illuminea, ironprogrammer, jjj, lopo, louiswol94, mikachan, nerrad, mukesh27, peterwilsoncc, pooja1210, smub, swissspidy.

Fixes #61319.
See #22316, #60992.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58254 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 16:15:18 +00:00
Jonathan Desrosiers
25b2b7d880 Build/Test Tools: Pin PHP 8.3 to LOCAL_PHP in the 6.5 branch.
This ensures the local development environment and testing workflows do not break in the future when the PHP Docker container labeled `latest` changes.

Fixes #61329.
See #60095.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58253 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 15:18:08 +00:00
Jonathan Desrosiers
a1b1e0339e Build/Test Tools: Use new reusable workflows in the 6.5 branch.
This updates the 6.5 branch to utilize the new reusable workflows in `trunk` introduced in [58165].

Props johnbillion, swissspidy, jorbin.
See #61213.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58166 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-17 18:12:02 +00:00
Jonathan Desrosiers
326fdca113 Build/Test Tools: Remove version from docker-compose.yml.
The `version` property throws a warning when working with the local Docker environment. According to the Docker Compose spec, the property only remains for backward compatibility and should be removed.

Merges [58157] to the 6.5 branch.

Props narenin, mukesh27, swissspidy.
Fixes #61101.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58158 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 15:52:58 +00:00
bernhard-reiter
b023c30251 Tests: Add comment to explain when e2e test for gutenberg is skipped
Follow-up to [58046].

Reviewed by jorbin.
Merges [58141] to the 6.5 branch.

See #60971.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58152 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 07:02:26 +00:00
bernhard-reiter
1ebc6242d6 Tests: Skip Gutenberg plugin activation test on older WP versions.
The purpose of `tests/e2e/specs/gutenberg-plugin.test.js` is to ensure that running the Gutenberg plugin (stable version) on a WordPress `trunk` install doesn't produce any fatals.

The test was introduced in [54913], i.e. it has been around since WP 6.2. It makes sense to have it present on older branches, as the Gutenberg plugin not only supports `trunk`, but also the current stable version of WordPress (i.e. currently 6.5), and one version below (6.4). However, it is not expected to work on any earlier versions beyond that; in practice, it has produced errors on some of those.

This changeset checks the REST API response from the plugin activation request. If it returns an error with error code `plugin_wp_incompatible`, it skips the test.

Reviewed by jorbin.
Merges [58046] to the 6.5 branch.

Props jorbin, johnbillion, swissspidy.
Fixes #60971.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58151 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 06:57:13 +00:00
Aaron Jorbin
869b847bd3 Post 6.5.3 version bump all the files.
unprops jorbin.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58117 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-07 17:02:17 +00:00
Aaron Jorbin
9d0f7b95e5 Post WordPress 6.5.3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58116 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-07 16:49:30 +00:00
Aaron Jorbin
e69e968c95 WordPress 6.5.3 about page and version bump.
Props jorbin, hellofromtonya.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58114 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-07 15:45:26 +00:00
Aaron Jorbin
7444885eb3 Post WordPress 6.5.3 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58088 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-02 20:51:14 +00:00
Aaron Jorbin
8598d932b1 WordPress 6.5.3 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58087 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-02 20:39:56 +00:00
Aaron Jorbin
917b3562ef Editor: update npm packages for 6.5.3.
Package Update includes fixes for:

– Layout: Skip outputting base layout rules that reference content or wide sizes if no layout sizes exist
– Fix inserter pattern pagination focus loss
– Fix static posts page setting resolved template
– Font Library: Fix modal scrollbar
– Interactivity API: Allow multiple event handlers for the same type with data-wp-on.
– Layout: Always add semantic classes
– List View: Fix stuck dragging mode in UI in Firefox when dealing with deeply nested lists
– Don't output base flow and constrained layout rules on themes without theme.json
- PHP unit test workflow: Try removing 7.0 and 7.1 to get CI tests passing

Props grantmkin, talldanwp, ntsekouras, mikachan, darerodz, andrewserong, mamaduka, isabel_brison, jorbin, annezazu, anlino, ramonopoly, davecpage, ellatrix, colorful-tones, mamaduka, flixos90, luisherranz, wildworks, jordesign, mmaattiiaass, jorgefilipecosta, kevin940726, afercia, poena, macmanx, luminuu, anlino.
Fixes #61129.



git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58086 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-02 20:29:38 +00:00
Aaron Jorbin
d04e9dff07 Plugins: Show an admin notice on successful activation.
Plugin activation on the Plugins > Add New screen is performed using AJAX, no longer performing redirects. This means that users will not see a newly activated plugin's menu items, admin notices, or other UI elements until the user refreshes or navigates to another screen. Without adequate messaging and direction, users may be unsure of what to do next.

This shows an admin notice when a plugin is activated from its plugin card or modal, informing the user that the plugin was activated, and that some changes may not occur until they refresh the page.

Follow-up to [57545].

Reviewed by joedolson.
Merges [58081] to the 6.5 branch.

Props costdev, jorbin, jeherve, flixos90, joedolson, ironprogrammer, audrasjb, alanfuller, kevinwhoffman, devsahadat, afragen, adrianduffell, azaozz, jason_the_adams, JeffPaul, webdevmattcrom, DrewAPicture, justlevine, stevejonesdev, benlk, roytanck.
Fixes #60992. See #22316.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58083 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-02 17:46:59 +00:00
Aaron Jorbin
bb733643cd REST API: Return empty object when no fallback templates are found (wp/v2/templates/lookup)
This prevents a number of php notices that are surfaced due to the endpoint being called on load of the post editor even when there are no templates.

Reviewed by joemcgill.
Merges [58079] to the 6.5 branch.

Props grantmkin, CookiesForDevo, britner, wildworks, jorbin.
Fixes #60909.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58080 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-02 16:27:32 +00:00
Aaron Jorbin
9a960d48d9 Script Loader: Ensure wp_localize_script() works when called early.
Before, wp_localize_script() did not work when the $wp_scripts global was not already set (for example because of a script registration happening elsewhere) and even emitted a warning in that case. Due to side effects such as block registration early in the load process, this usually never happened. However, the absence of these side effects in 6.5 caused the wp_localize_script() to no longer work in places such as the login_enqueue_scripts.

By calling wp_scripts() in wp_localize_script(), the $wp_scripts global is automatically set if needed, restoring previous behavior. Adds both a PHP unit test and an e2e test to verify this use case. Hat tip: jorbin.

Thanks for the birthday wishes, Pascal!

Reviewed by Jorbin.
Merges [58068] to the 6.5 branch.

Props salcode, aslamdoctor, jorbin, swissspidy.
Fixes #60862.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58078 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-02 15:04:04 +00:00
Pascal Birchler
4340ceb0bf I18N: Bail early if an invalid text domain is passed to load_textdomain() et al.
Some plugins pass invalid values such as `null` instead of a string, which has never been supported by WordPress (no translations are loaded) and was technically undefined behavior. With the introduction of the new l10n library in #59656, which has stricter type hints, this could end up causing warnings or even fatal errors.

This change adds a deliberate short-circuit to `load_textdomain()` & co. to better handle such a case and document that it is not supported.

Merges [57925] to the 6.5 branch.
Reviewed by jorbin.

Props verygoode, swissspidy.
Fixes #60888.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58066 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-30 09:45:39 +00:00
Isabel Brison
64d04c3b51 Editor: fix spacing in function doc.
Correctly formats spacing in `get_layout_styles` docblock.

Props mukesh27, sabernhardt.
Reviewed by jorbin.
Merges [58030] to the 6.5 branch.
See #60981.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58058 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-30 03:23:37 +00:00
Isabel Brison
71b3871108 Editor: limit layout rules on themes without theme.json.
Removes output of base rules for flow and constrained layout types on themes without theme.json.

Props evanltd, poena, isabel_brison, andrewserong, oandregal.
Reviewed by jorbin.
Merges [58028] to the 6.5 branch.
See #60981.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58057 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-30 03:17:43 +00:00
Isabel Brison
ffce89ee14 Editor: skip outputting base layout rules if content and wide size values don’t exist.
Skip outputting layout rules that reference content and wide sizes CSS variables, if no layout sizes exist in the current `theme.json`.

Props andrewserong.
Reviewed by jorbin.
Merges [57948] to the 6.5 branch.
Fixes #60936.


git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58056 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-30 01:46:18 +00:00
Adam Silverstein
a2bb04fc35 Media: fix potential error in class-avif-info.php::get_item_features().
Import upstream fix from libavifinfo, correcting a potential fatal error.

Reviewed by jorbin.
Merges [58049] to the 6.5 branch.

Props yguyon.
Fixes #60980.



git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58050 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-26 15:25:54 +00:00
bernhard-reiter
b6bd5a8384 Block Hooks: Fix @since and deprecated versions.
Two `@since` PHPDoc fields, and the version argument to one `_deprecated_argument()` incorrectly stated 6.5.1 as the relevant WordPress version where a change was introduced.

This changeset fixes them by setting them to 6.5.3 instead.

Reviewed by swissspidy.
Merges [58042] to the to the 6.5 branch.

Follow-up to [58041].
See #60754.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58043 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-24 12:18:58 +00:00
bernhard-reiter
3ae27b97a7 Block Hooks: Pass correct context to filters.
The `$context` argument passed to filters such as `hooked_block_types`, `hooked_block`, and `hooked_block_{$hooked_block_type}` allows them to conditionally insert a hooked block. If the anchor block is contained in a template or template part, `$context` will be set to a `WP_Block_Template` object reflecting that template or part.

The aforementioned filters are applied when hooked block insertion is run upon reading a template (or part) from the DB (and before sending the template/part content with hooked blocks inserted over the REST API to the client), but also upon writing to the DB, as that's when the `ignoredHookedBlocks` metadata attribute is set.

Prior to this changeset, the `$context` passed to Block Hooks related filters in the latter case reflected the template/part that was already stored in the database (if any), which is a bug; instead, it needs to reflect the template/part that will result from the incoming `POST` network request that will trigger a database update.

Those incoming changes are encapsulated in the `$changes` argument passed to the `reset_pre_insert_template` and  `reset_pre_insert_template_part` filters, respectively, and thus to the `inject_ignored_hooked_blocks_metadata_attributes` function that is hooked to them. `$changes` is of type `stdClass` and only contains the fields that need to be updated. That means that in order to create a `WP_Block_Template` object, a two-step process is needed:

- Emulate what the updated `wp_template` or `wp_template_part` post object in the database will look like by merging `$changes` on top of the existing `$post` object fetched from the DB, or from the theme's block template (part) file, if any.
- Create a `WP_Block_Template` from the resulting object.

To achieve the latter, a new helper method (`_build_block_template_object_from_post_object`) is extracted from the existing `_build_block_template_result_from_post` function. (The latter cannot be used directly as it includes a few database calls that will fail if no post object for the template has existed yet in the database.)

While somewhat complicated to implement, the overall change allows for better separation of concerns and isolation of entities. This is visible e.g. in the fact that `inject_ignored_hooked_blocks_metadata_attributes` no longer requires a `$request` argument, which is reflected by unit tests no longer needing to create a `$request` object to pass to it, thus decoupling the function from the templates endpoint controller.

Unit tests for `inject_ignored_hooked_blocks_metadata_attributes` have been moved to a new, separate file. Test coverage has been added such that now, all three relevant scenarios are covered:

- The template doesn't exist in the DB, nor is there a block theme template file for it.
- The template doesn't exist in the DB, but there is a block theme template file for it.
- The template already exists in the DB.

Those scenarios also correspond to the logical branching inside `WP_REST_Templates_Controller::prepare_item_for_database`, which is where `inject_ignored_hooked_blocks_metadata_attributes` gets its data from.

Reviewed by gziolo.
Merges [57919] to the to the 6.5 branch.

Props tomjcafferkey, bernhard-reiter, gziolo, swissspidy.
Fixes #60754.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58041 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-24 12:00:29 +00:00
Jb Audras
ba4b299d49 I18n: Add context to the "Patterns" translatable string for the related admin menu item.
This changeset put back the context parameter of the "Patterns" string which was previously removed to fix a translation issue without introducing a string change during WP 6.5 string freeze period.

Follow-up to [57864].

Reviewed by audrasjb, jorbin.
Merges [57887] to the to the 6.5 branch.
Props kebbet, narenin, nestea29950.
Fixes #60827.




git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58038 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-23 17:33:01 +00:00
Joe Dolson
5fb9a429c3 Media: Use flex-start for full browser support.
The value of start is not fully supported by Opera Mini which has 1.01% usage. There is no material change in functionality with this change.

Follow-up to [55919].

Props davidbaumwald, sabernhardt, khokansardar, devsahadat.
Reviewed by joedolson.
Merges [57881] to the 6.5 branch.
Fixes #60876.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58036 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-22 22:40:04 +00:00
Joe Dolson
f37a989196 Revert accidental commits to 6.5 branch. Reverts [58019] and [58018]. Unprops @joedolson
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58020 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-17 20:10:54 +00:00
Joe Dolson
38bddf43ca Help/About: Text consistency follow-up to [58018].
Follow up to [58018]. Remove extra 'support for' from Export help link text.

Props sabernhardt.
Fixes #60097.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58019 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-17 19:19:56 +00:00
Joe Dolson
b612570ae7 Help/About: Accessibility: Remove target="_blank" from data eraser links.
Remove `target="_blank"` from two links to developer resources on adding the personal data eraser to plugins in the Help info for the privacy screens. Also rectifies differences between the export and erase screens for consistency and changes the order of paragraphs. 

Props sabernhardt, joedolson.
Fixes #60097.

git-svn-id: https://develop.svn.wordpress.org/branches/6.5@58018 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-17 19:13:20 +00:00
John Blackbourn
434147d28e Post WordPress 6.5.2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@57980 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-09 21:48:28 +00:00
John Blackbourn
e1e8ba1760 WordPress 6.5.2.
git-svn-id: https://develop.svn.wordpress.org/branches/6.5@57978 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-09 21:03:42 +00:00