44246 Commits

Author SHA1 Message Date
Jonathan Desrosiers
4c9cb0c3cc Security: Update bundled Root Certificates.
Some checks are pending
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
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 5.6 (push) Waiting to run
PHPUnit Tests / PHP 7.0 (push) Waiting to run
PHPUnit Tests / PHP 7.1 (push) Waiting to run
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 / 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 / Slack Notifications (push) Blocked by required conditions
Test Build Processes / Failed workflow tasks (push) Blocked by required conditions
The Root Certificate bundle maintained by Mozilla ships in WordPress to allow SSL certificates to be verified on hosts with incomplete, outdated, or invalid local SSL configurations.

This updates the `ca-bundle.crt` file to the latest version, which applies upstream changes from the bundle maintained by Mozilla and keeps all unexpired legacy 1024bit certificates which are kept for backward compatibility purposes (see [35919]).

Partially merges [59740] and [59969] to the 5.8 branch.

Props johnbillion, desrosj, whyisjake, ayeshrajans, SergeyBiryukov, swissspidy, skithund, barry.
See #62811, #62711.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@60002 602fd350-edb4-49c9-b593-d223f7449a82
2025-03-16 23:01:50 +00:00
Jonathan Desrosiers
6059d97d60 Build/Test Tools: Disable AppArmor for JavaScript testing.
Some checks failed
Coding Standards / PHP coding standards (push) Has been cancelled
Coding Standards / JavaScript coding standards (push) Has been cancelled
End-to-end Tests / Test with SCRIPT_DEBUG disabled (push) Has been cancelled
End-to-end Tests / Test with SCRIPT_DEBUG enabled (push) Has been cancelled
JavaScript Tests / QUnit Tests (push) Has been cancelled
PHP Compatibility / Check PHP compatibility (push) Has been cancelled
PHPUnit Tests / PHP 5.6 (push) Has been cancelled
PHPUnit Tests / PHP 7.0 (push) Has been cancelled
PHPUnit Tests / PHP 7.1 (push) Has been cancelled
PHPUnit Tests / PHP 7.2 (push) Has been cancelled
PHPUnit Tests / PHP 7.3 (push) Has been cancelled
PHPUnit Tests / PHP 7.4 (push) Has been cancelled
PHPUnit Tests / PHP 8.0 (push) Has been cancelled
Test Build Processes / Core running from build (push) Has been cancelled
Test Build Processes / Core running from src (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
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 / Slack Notifications (push) Has been cancelled
Test Build Processes / Failed workflow tasks (push) Has been cancelled
This makes use of the new input added in [59635] that fixes tests on `ubuntu-24` in the 5.8 branch.

Props swissspidy, mukesh27.
See #62808.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@59638 602fd350-edb4-49c9-b593-d223f7449a82
2025-01-16 20:38:31 +00:00
Jonathan Desrosiers
29b240d70c Build/Test Tools: Update Docker Compose to v2 for 5.8 branch.
Some checks failed
PHPUnit Tests / PHP ${{ matrix.php }} (false, false, ubuntu-latest, 7.4, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, false, ubuntu-latest, 8.0, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 5.6, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 5.6, true) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 7.0, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 7.1, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 7.2, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 7.3, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 7.4, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (false, true, ubuntu-latest, 8.0, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (true, false, ubuntu-latest, 7.4, false) (push) Has been cancelled
PHPUnit Tests / PHP ${{ matrix.php }} (true, true, ubuntu-latest, 7.4, false) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (build, ubuntu-latest, 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-13) (push) Has been cancelled
Test Build Processes / Core running from ${{ matrix.directory }} (src, macos-13) (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
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 / Slack Notifications (push) Has been cancelled
Test Build Processes / Failed workflow tasks (push) Has been cancelled
This updates an instance of `docker-compose` in the `env:start` script to use the new `docker compose` format that was missed in the initial commit.

Follow up to [58597].
See #60901.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@59211 602fd350-edb4-49c9-b593-d223f7449a82
2024-10-10 18:00:39 +00:00
Jonathan Desrosiers
b1389fb67a Build/Test Tools: Re-add Slack notices for E2E workflow.
This re-adds Slack notices for the E2E workflow in the 5.8 branch.

These were mistakenly removed in [58597].

Fixes #61733. See #61213.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@58795 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-23 19:21:26 +00:00
Jonathan Desrosiers
a6d0c70c73 Build/Test Tools: Change 5.8 default values of LOCAL_PHP/LOCAL_DB_VERSION.
This changes the default values for `LOCAL_PHP` and `LOCAL_DB_VERSION` in the 5.8 branch from `latest` to `8.0-fpm` (with beta support) and `5.7`, 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/5.8@58665 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-03 17:36:54 +00:00
Jonathan Desrosiers
3593727e56 Build/Test Tools: Use correct value for split_slow.
Follow up to [58597], [58602].

See #61213.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@58603 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-01 17:09:39 +00:00
Jonathan Desrosiers
93649eee77 Build/Test Tools: Fix 2 matrix errors.
These are caused by an empty `split_slow` value when one is always expected.

See #61213.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@58602 602fd350-edb4-49c9-b593-d223f7449a82
2024-07-01 15:25:20 +00:00
Jonathan Desrosiers
6ee9f96b68 Build/Test Tools: Make use of new reusable workflows for 5.8.
This updates the 5.8 branch to utilize the new reusable workflows in trunk introduced in [58165].

This also includes backports for a some additional improvements and bug fixes that are necessary for the local development environment to continue working long term:

- The image and platform properties for the mysql container have been updated to always prefer amd64 containers (#60822).
- macos-13 is now pinned for MacOS jobs instead of macos-latest (#61340).
- Run E2E tests with and without SCRIPT_DEBUG (#58661).
- Migrating to Docker Compose V2 (#60901).
- Removing the version property from docker-compose.yml (#59416).
- Improvements to how artifacts and comments for Playground testing are generated.
- Removing SVN related commands causing failures (#61216).
- Updating the actions/github-scripts action to the latest version.
- Move the Memcached container into the Docker Compose config (#55700).
- Configure Xdebug modes in the local Docker environment (#56022).
- Cache the results of `PHP_CodeSniffer` runs (#49783).

Merges [52179], [53895], [53552], [56113], [56114], [57918], [58157], [57124], [57125], [57249] to the 5.8 branch.

Props johnbillion, joemcgill, swissspidy, thelovekesh, narenin, mukesh27, JeffPaul, peterwilsoncc, zieladam, ockham, SergeyBiryukov, jorbin, Clorith, afragen, jrf.
See #48783, #55700, #61340, #60822, #61216, #60901, #61101, #59416, #59805, #61213, #58661.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@58597 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-28 18:40:36 +00:00
Jb Audras
ed4997df29 WordPress 5.8.10.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@58510 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 16:19:28 +00:00
Jb Audras
adf50e7b1a Editor: Fix Path Traversal issue on Windows in Template-Part Block.
Merges [58470] to the 5.8 branch.
Props xknown, jorbin.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@58484 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-24 15:27:46 +00:00
Sergey Biryukov
add31c8ddc Tests: Use an image on WordPress.org CDN in external HTTP tests.
Due to some changes on the WP.com side to compress the requested images on the fly, the exact image size in the response could be different between platforms.

This commit aims to make the affected tests more reliable.

Follow-up to [139/tests], [31258], [34568], [47142], [57903], [57904], [57924].

Merges [57931] to the 5.8 branch.

Props peterwilsoncc, jorbin.
See #60865.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@57993 602fd350-edb4-49c9-b593-d223f7449a82
2024-04-15 12:22:26 +00:00
Joe McGill
496ede003e General: Backport polyfills for str_ends_with() and str_starts_with() .
Merges [52040], [56016], and [56015] to 5.8 branch.

Props ocean90, SergeyBiryukov, desrosj, joemcgill, jorbin, mukesh27.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@57449 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-30 17:48:27 +00:00
Jonathan Desrosiers
a02fbf287c General: Ensure newline at end of file.
Follow up to [57432].

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@57448 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-30 17:36:00 +00:00
Joe McGill
1268b5ee67 WordPress 5.8.9.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@57432 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-30 16:29:16 +00:00
Aaron Jorbin
84f472d106 Grouped Backports to the 5.8 branch
- Install: When populating options, maybe_serialize instead of always serialize.
- Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 5.8 branch.

Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@57397 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-30 14:45:47 +00:00
Jonathan Desrosiers
dc316eaaff Build/Test Tools: Change the default value of LOCAL_PHP.
This changes the default value for `LOCAL_PHP` in the 5.8 branch from `latest` to `8.0-fpm` to reflect the highest version of PHP this branch will support (with beta support).

After this change, future updates to the `latest` container built and published by the `wpdev-docker-images` repository will not cause failures in this branch.

Follow up to [57198], [57198].

See #60095.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@57200 602fd350-edb4-49c9-b593-d223f7449a82
2023-12-18 19:38:41 +00:00
Jb Audras
967253f357 WordPress 5.8.8.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@56890 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-12 15:29:20 +00:00
Joe McGill
ab22ea5a8b Grouped backports to the 5.8 branch.
- REST API: Limit `search_columns` for users without `list_users`.
- Comments: Prevent users who can not see a post from seeing comments on it.
- Application Passwords: Prevent the use of some pseudo protocols in application passwords.
- Restrict media shortcode ajax to certain type
- REST API: Ensure no-cache headers are sent when methods are overriden.
- Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], [56837], and [56838] to the 5.8 branch.
Props xknown, jorbin, Vortfu, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, martinkrcho, paulkevan, dd32, antpb, rmccue.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@56884 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-12 15:14:45 +00:00
Jb Audras
4a2d6994cb Grouped backports to the 5.8 branch.
- Media: Prevent CSRF setting attachment thumbnails.
- Embeds: Add protocol validation for WordPress Embed code.
- I18N: Introduce sanitization function for locale.
- Editor: Ensure block comments are of a valid form.

Merges [55760-55764] to the 5.8 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@55777 602fd350-edb4-49c9-b593-d223f7449a82
2023-05-16 15:31:04 +00:00
Jonathan Desrosiers
298a64819a Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:

- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches. 

Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54649], [54650], [54651], [54674], [54750], [54852], [55152], [55487] to the 5.8 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@55517 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:07:11 +00:00
Peter Wilson
95c6438520 I18N: Add new strings to about.php for use with end-of-life updates.
This changeset adds two additional translation strings in the changelog file, for use when releasing the final version of WordPress on a particular branch.

Props peterwilsoncc, audrasjb, mukesh27, mukesh27.
Merges [55350] to the 5.8 branch.
Fixes #57216.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@55374 602fd350-edb4-49c9-b593-d223f7449a82
2023-02-21 02:42:30 +00:00
Peter Wilson
e039b9bc3d Built/Test tools, HTTP API: Refactor test for multiple location headers.
Remove wordpress.org as an external dependency testing `WP_HTTP::handle_redirects()`.

This refactors and reenables an existing test to call the `WP_HTTP::handle_redirects()` method directly with a mocked array of HTTP headers containing multiple location headers.

The test is moved from the external-http group to the http test group as it no longer makes an HTTP request.

Follow up to [54955].

Props SergeyBiryukov, dd32, peterwilsoncc.
Merges [54968] to the 5.8 branch.
Fixes #57306.
See #56793.



git-svn-id: https://develop.svn.wordpress.org/branches/5.8@54977 602fd350-edb4-49c9-b593-d223f7449a82
2022-12-15 04:23:56 +00:00
Jb Audras
c1a7294686 WordPress 5.8.6.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@54583 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-17 19:44:59 +00:00
Jonathan Desrosiers
f5f6651266 Editor: Bump @wordpress packages for 5.8.6.
Package updates for bug fixes:

* @wordpress/block-directory: 2.1.23
* @wordpress/block-library: 3.2.21
* @wordpress/customize-widgets: 1.0.22
* @wordpress/edit-post: 4.1.23
* @wordpress/edit-widgets: 2.1.23
* @wordpress/widgets: 1.1.21

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@54565 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-17 18:08:38 +00:00
Jb Audras
11c294a9b7 Grouped backports to the 5.8 branch.
- Editor: Bump @wordpress packages for the 5.9 branch,
- Media: Refactor search by filename within the admin,
- REST API: Lockdown post parameter of the terms endpoint,
- Customize: Escape blogname option in underscores templates,
- Query: Validate relation in `WP_Date_Query`,
- Users: Revert use of shared objects for current user,
- Posts, Post types: Apply KSES to post-by-email content,
- General: Validate host on "Are you sure?" screen,
- Posts, Post types: Remove emails from post-by-email logs,
- Pings/trackbacks: Apply KSES to all trackbacks,
- Mail: Reset PHPMailer properties between use,
- Comments: Apply kses when editing comments,
- Widgets: Escape RSS error messages for display.

Merges [54521-54530] to the 5.8 branch.
Props audrasjb, costdev, cu121, dd32, davidbaumwald, ehtis, johnbillion, johnjamesjacoby, martinkrcho, matveb, oztaser, paulkevan, peterwilsoncc, ravipatel, SergeyBiryukov, talldanwp, timothyblynjacobs, tykoted, voldemortensen, vortfu, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@54548 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-17 17:46:39 +00:00
Peter Wilson
d6a1abb9fd Tests: Replace the timezone used in date/time tests.
The `Europe/Kiev` timezone has been deprecated in PHP 8.2 and replaced with `Europe/Kyiv`.

The tests updated in this commit are testing the WordPress date/time functionality. They are **not** testing whether WP or PHP can handle deprecated timezone names correctly.

To ensure the tests follow the original purpose, the use of `Europe/Kiev` within these tests is now replaced with the `Europe/Helsinki` timezone, which is within the same timezone as `Europe/Kyiv`. This should ensure that these tests run without issue and test what they are supposed to be testing on every supported PHP version (unless at some point in the future `Europe/Helsinki` would be renamed, but that's a bridge to cross if and when).

Note: Separate tests should/will be added to ensure that relevant date/time related functions handle a deprecated timezone correctly, but that is not something ''these'' tests are supposed to be testing.

Follow-up to [45853], [45856], [45876], [45882], [45887], [45908], [45914], [46577], [46154], [46580], [46864], [46974], [54207].

Props jrf, costdev, SergeyBiryukov.
Merges [54217] to the 5.8 branch.
See #56468.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@54514 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-14 06:56:01 +00:00
Peter Wilson
b3af13cd3e Security: Introduce strings to indicate support status.
Add strings for use in future maintenance/security releases to indicate the security support status of the version of WordPress.

Two strings are introduced:

* indicating the version of WordPress is not receiving security updates, and,
* indicating the version of WordPress will shortly stop receiving security updates.

This change does not make use of the strings, the purpose is to make them available to translators prior to dropping support of selected versions of WordPress.

Props costdev, chesio, robinwpdeveloper, desrosj, rudlinkon, mukesh27, sumitbagthariya16.
Merges [54322] to the 5.8 branch.
See #56532.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@54432 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-10 04:49:33 +00:00
Jonathan Desrosiers
99de27c701 WordPress 5.8.5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@53989 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 17:23:35 +00:00
Sergey Biryukov
769521ceae Grouped backports to the 5.8 branch.
- Posts, Post Types: Escape output within `the_meta()`.
- General: Ensure bookmark query limits are numeric.
- Plugins: Escape output in error messages.
- Build/Test Tools: Allow the PHPCS plugin in Composer configuration.

Merges [52412,53958-53960] to the 5.8 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@53965 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 15:28:32 +00:00
Sergey Biryukov
ae3d9432ad Block Patterns: Update the value used for keywords.
Patterns on the [https://wordpress.org/patterns/ Pattern Directory] can have keywords for better discoverability while searching. The way these are stored [69548ff1f0 was changed from a taxonomy to meta value], but the `/wp/v2/pattern-directory/patterns` endpoint was still pulling from that old value.

The correct property to use for this field is `meta.wpop_keywords`, which returns a single string with comma-separated keywords.

Follow-up to [51021].

Props ryelle, TimothyBlynJacobs.
Merges [53665] to the 5.8 branch.
See #56126.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@53675 602fd350-edb4-49c9-b593-d223f7449a82
2022-07-06 16:26:08 +00:00
Jonathan Desrosiers
ae13cba729 Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.

The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).

Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.

Merges [51921], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 5.8 branch.
See #56095.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@53597 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 16:26:30 +00:00
Jonathan Desrosiers
f0c665aafc Build/Test Tools: Specify NodeJS version 14.x in the .nvmrc file.
As of 2021-10-26, the LTS version of NodeJS is now `16.x`.

This pins the `14.x` version in the `.nvmrc` file to ensure contributors are able to contribute without issue until compatibility with version `16.x` can be confirmed in both `trunk` and the Gutenberg repository on GitHub.

Merges [52240] to the 5.8 branch.
Fixes #54502.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@53583 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-27 19:34:38 +00:00
Jorge Costa
bb6cdf6848 Update WordPress packages.
Updates the WordPress packages to their most recent patch versions.

Props xknown, sergey, audrasjb.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52887 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 22:13:10 +00:00
Jb Audras
1407733bda WordPress 5.8.4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52880 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 22:06:20 +00:00
Jb Audras
4b8e7423c2 External Librairies: Update jQuery.query to version 2.2.3.
This updates the "jquery-query" library from version 2.1.7 to 2.2.3.

Props jorbin, peterwilsoncc, xknown, audrasjb, jorgefilipecosta.
Merges [52844] to the 5.8 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52848 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 20:47:06 +00:00
Jonathan Desrosiers
7f4efc55b6 Post WordPress 5.8.3 version bump.
The 5.8 branch is now 5.8.4 alpha.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52533 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 20:54:25 +00:00
Jonathan Desrosiers
cc58650ba4 WordPress 5.8.3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52487 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:43:54 +00:00
Jonathan Desrosiers
c755259dc8 Formatting: Correctly encode ASCII characters in post slugs.
Merges [52457] to the 5.8 branch.
Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52465 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 17:34:57 +00:00
Jonathan Desrosiers
257814ebb4 Upgrade/Install: Avoid using unserialize() unnecessarily.
Merges [52456] to the 5.8 branch.
Props vortfu, xknown, dd32.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52463 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 17:27:15 +00:00
Jonathan Desrosiers
c09ccfbc54 Query: Improve sanitization within WP_Meta_Query.
Merges [52455] to the 5.8 branch.
Props vortfu, xknown, dd32.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52461 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 17:22:56 +00:00
Jonathan Desrosiers
17efac8c8e Query: Improve sanitization within WP_Tax_Query.
Merges [52454] to the 5.8 branch.
Props dd32, xknown, peterwilsoncc, ehtis.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52459 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 17:20:19 +00:00
Jonathan Desrosiers
dcaa0934c0 Help/About: Use the correct number of bugs fixed in 5.8.2.
Follow up to [52112].

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52113 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-10 17:04:18 +00:00
Jonathan Desrosiers
3e8ac64fd3 WordPress 5.8.2.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@52112 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-10 17:02:52 +00:00
Jonathan Desrosiers
77ed0acb06 Post WordPress 5.8.2 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51987 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-02 20:08:12 +00:00
Jonathan Desrosiers
d8e77bdef8 WordPress 5.8.2 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51986 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-02 19:45:56 +00:00
Sergey Biryukov
9e7602b2e1 Media: Use WP_Query::get() method to retrieve the posts_per_page value in wp_ajax_query_attachments().
This avoids a PHP notice and ensures that a default value is always provided if none is set by the user.

Follow-up to [51145], [51485].

Props davidwebca, mukesh27, circlecube, desrosj.
Merges [51982] to the 5.8 branch.
Fixes #54129.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51983 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-02 18:32:24 +00:00
Jonathan Desrosiers
4f3ab0478b Script Loader: Correct the number of arguments passed to the closure in enqueue_block_styles_assets().
This avoids an `Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed` PHP fatal error when registering a block style with the `should_load_separate_core_block_assets` filter enabled.

Follow-up to [51471].

Props aristath, shimon246, jrf, gziolo, SergeyBiryukov.
Merges [54323] to the 5.8 branch.
Fixes #54323.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51981 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-02 18:21:29 +00:00
Jonathan Desrosiers
55d6908dfb HTTP: Remove the DST Root CA X3 certificate expired on September 30, 2021.
> The currently recommended certificate chain as presented to Let’s Encrypt ACME clients when new certificates are issued contains an intermediate certificate (ISRG Root X1) that is signed by an old DST Root CA X3 certificate that expires on 2021-09-30. In some cases the OpenSSL 1.0.2 version will regard the certificates issued by the Let’s Encrypt CA as having an expired trust chain.
> 
> Most up-to-date CA cert trusted bundles, as provided by operating systems, contain this soon-to-be-expired certificate. The current CA cert bundles also contain an ISRG Root X1 self-signed certificate. This means that clients verifying certificate chains can find the alternative non-expired path to the ISRG Root X1 self-signed certificate in their trust store.
> 
> Unfortunately this does not apply to OpenSSL 1.0.2 which always prefers the untrusted chain and if that chain contains a path that leads to an expired trusted root certificate (DST Root CA X3), it will be selected for the certificate verification and the expiration will be reported.

References:
* [https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/ Old Let’s Encrypt Root Certificate Expiration and OpenSSL 1.0.2]
* [https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ DST Root CA X3 Expiration (September 2021)]

Follow-up to [25224], [25426], [25569], [27307], [30491], [30765], [34283], [35919], [36570], [46094].

Props bradleyt, fierevere, SergeyBiryukov.
Merges [51883] to the 5.8 branch.
Fixes #54207. See #50828.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51948 602fd350-edb4-49c9-b593-d223f7449a82
2021-10-28 19:20:19 +00:00
Jonathan Desrosiers
bf45274615 Build/Test Tools: Change the patch version used for testing the 5.6 branch of PHP.
This unpins the version of PHP 5.6.20 used when testing the 5.6 branch of PHP.

Using 5.6.20 was an intentional decision in [49162], as that patch version is the oldest version of PHP 5.6 still supported by WordPress. However, as of September 30, 2021, the `5.6.20` image contains a version of OpenSSL with an expired certificate, sometimes resulting in an expired trust chain.

Props Clorith, hellofromTonya, SergeyBiryukov, desrosj.
Fixes #54223.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51889 602fd350-edb4-49c9-b593-d223f7449a82
2021-10-05 17:23:37 +00:00
Tonya Mork
50c5eb71e8 Build/Test Tools: Fix test forward-compatibility layer.
In [51838], the test wrapper methods were not being called due to the names not being recognized as supported PHPUnit "hook" names for fixtures.

This commit:
- Fixes the problem by adding extra camelCase wrappers to the `WP_UnitTestCase` to call the methods in the right order.
- Adds wrappers for the `assertPreConditions()` and `assertPostConditions()` fixture methods to make the backport feature complete for the fixture wrappers.

Test wrapper methods call fix:

By adding method overloads for the PHPUnit native camelCase fixture methods and letting those call the (camelCase) parent method first and only calling the snake_case fixture methods after, the snake_case methods can be supported and the typical run order safeguarded.

As not all test classes will have declared snake_case fixture methods, the snake_case fixture methods are also declared in the `WP_UnitTestCase`. Why? This prevents having to wrap these method calls in `method_exists()` conditions checking for the existence of the snake_case methods in an unknown Test child class. And with the normal inheritance rules in combination with calling the method using `static`, the right method will be called anyway without fatal "calling undeclared method" errors.

Note: While it will be rare, there ''may'' be cases where a test class does not adhere to the normal execution order for fixtures, i.e. for the setup methods, parent first, own code second; and for the teardown methods, own code first, parent second. For example a test class which has "some code - `parent::setUp()` call - some more code" in their `setUp()` method. In those (rare) cases, the execution order of the code will now be changed, which may have side-effects. This rare case will be identified in the dev note.

Follow-up to [51838].

Props bjorsch, swisspidy, jrf, hellofromTonya.
See #53911.

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51861 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-24 13:18:21 +00:00