Commit Graph

44183 Commits

Author SHA1 Message Date
desrosj d62063dfbd WordPress 5.8.13.
Built from https://develop.svn.wordpress.org/branches/5.8@61962


git-svn-id: http://core.svn.wordpress.org/branches/5.8@61244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-12 03:32:11 +00:00
Peter Wilson acbe416d69 Grouped backports for the 5.8 branch.
- XML-RPC: Switch to `wp_safe_remote()` when fetching a pingback URL.
- HTML API: Prevent `WP_HTML_Tag_Processor` instances being unserialized and add some extra logic for validating pattern and template file paths.
- KSES: Optimize PCRE pattern detecting numeric character references.
- Customize: Improve escaping approach used for nav menu attributes.
- Media: Ensure the attachment parent is accessible to the user before showing a link to it in the media manager.
- Administration: Ensure client-side templates are only detected when they're correctly associated with a script tag.
- Filesystem API: Don't attempt to extract invalid files from a zip when using the PclZip library.

Merges [61879-61885,61887,61890,61913] to the 5.8 branch.

Props johnbillion, xknown, dmsnell, jorbin, peterwilson, desrosj, westonruter, jonsurrell, aurdasjb.


Built from https://develop.svn.wordpress.org/branches/5.8@61952


git-svn-id: http://core.svn.wordpress.org/branches/5.8@61234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-03-12 02:04:06 +00:00
desrosj 4afa0dc709 Security: Update composer/ca-bundle to version 1.5.9.
Props jorbin, desrosj.

Merges [60691], [61146] to the 5.8 branch.
See #63165.
Built from https://develop.svn.wordpress.org/branches/5.8@61158


git-svn-id: http://core.svn.wordpress.org/branches/5.8@60494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-06 20:44:34 +00:00
desrosj db2a5a73dc WordPress 5.8.12.
Built from https://develop.svn.wordpress.org/branches/5.8@60850


git-svn-id: http://core.svn.wordpress.org/branches/5.8@60186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 17:44:55 +00:00
desrosj f609c491b3 Grouped backports for the 5.8 branch.
- REST API: Increase the specificity of capability checks for collections when the `edit` context is in use.
- Menus: Prevent HTML in menu item titles from being rendered unexpectedly.

Merges [60814], [60815], [60816] to the 5.8 branch.

Props andraganescu, desrosj, ehti, hurayraiit, iandunn, joehoyle, johnbillion, jorbin, mnelson4, noisysocks, peterwilsoncc, phillsav, rmccue, timothyblynjacobs, vortfu, westonruter , whyisjake, zieladam.
Built from https://develop.svn.wordpress.org/branches/5.8@60828


git-svn-id: http://core.svn.wordpress.org/branches/5.8@60164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 17:15:07 +00:00
desrosj fc03447026 Build/Test Tools: Pin Importer plugin version for PHP < 7.2.
The WordPress Importer plugin now requires PHP 7.2 or higher. The plugin’s unit tests were removed as of [59769] in favor of running only within the plugin’s repository on GitHub instead.

[59769] was made during the 6.8 release cycle, so all WP <= 6.7 branches still checkout the latest revision for the plugin before running the PHPUnit test suite.

This change modifies the `env:install` script to download version `0.9.0` of the plugin (which is the last version of the Importer plugin that supports PHP < 7.2) when a qualifying version is being tested.

Merges [60748] to the 5.8 branch.

Props @swissspidy.
See #63983.
Built from https://develop.svn.wordpress.org/branches/5.8@60756


git-svn-id: http://core.svn.wordpress.org/branches/5.8@60092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-15 20:21:09 +00:00
audrasjb c812814111 Post 5.8.11 release bump.
The 5.8 branch is now 5.8.12-alpha.

Built from https://develop.svn.wordpress.org/branches/5.8@60608


git-svn-id: http://core.svn.wordpress.org/branches/5.8@59944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 21:03:14 +00:00
John Blackbourn afc004b36e WordPress 5.8.11.
Built from https://develop.svn.wordpress.org/branches/5.8@60550


git-svn-id: http://core.svn.wordpress.org/branches/5.8@59886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-08-05 16:42:14 +00:00
desrosj 1719cd4846 Security: Update composer/ca-bundle to version 1.5.7.
Merges [60320] to the 5.8 branch.

See #63165.
Built from https://develop.svn.wordpress.org/branches/5.8@60379


git-svn-id: http://core.svn.wordpress.org/branches/5.8@59715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-30 17:26:57 +00:00
desrosj 5f91de059f Security: Update bundled Root Certificates.
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.
Built from https://develop.svn.wordpress.org/branches/5.8@60002


git-svn-id: http://core.svn.wordpress.org/branches/5.8@59344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-16 23:10:24 +00:00
audrasjb ade6808d07 WordPress 5.8.10.
Built from https://develop.svn.wordpress.org/branches/5.8@58510


git-svn-id: http://core.svn.wordpress.org/branches/5.8@57958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-06-24 16:23:06 +00:00
audrasjb 3eacb28165 Editor: Fix Path Traversal issue on Windows in Template-Part Block.
Merges [58470] to the 5.8 branch.
Props xknown, jorbin.


Built from https://develop.svn.wordpress.org/branches/5.8@58484


git-svn-id: http://core.svn.wordpress.org/branches/5.8@57933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-06-24 15:29:06 +00:00
Joe McGill 913f7b642f 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.

Built from https://develop.svn.wordpress.org/branches/5.8@57449


git-svn-id: http://core.svn.wordpress.org/branches/5.8@56950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 17:50:01 +00:00
Joe McGill 65fa3acb4b WordPress 5.8.9.
Built from https://develop.svn.wordpress.org/branches/5.8@57432


git-svn-id: http://core.svn.wordpress.org/branches/5.8@56938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 16:32:03 +00:00
Aaron Jorbin c3f642d953 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.

Built from https://develop.svn.wordpress.org/branches/5.8@57397


git-svn-id: http://core.svn.wordpress.org/branches/5.8@56903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-30 14:47:04 +00:00
audrasjb 86cdb64878 WordPress 5.8.8.
Built from https://develop.svn.wordpress.org/branches/5.8@56890


git-svn-id: http://core.svn.wordpress.org/branches/5.8@56401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:36:54 +00:00
Joe McGill 04a88b9941 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.

Built from https://develop.svn.wordpress.org/branches/5.8@56884


git-svn-id: http://core.svn.wordpress.org/branches/5.8@56395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:30:41 +00:00
audrasjb fdbe707b83 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.


Built from https://develop.svn.wordpress.org/branches/5.8@55777


git-svn-id: http://core.svn.wordpress.org/branches/5.8@55289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 15:33:10 +00:00
Peter Wilson be7517b381 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.

Built from https://develop.svn.wordpress.org/branches/5.8@55374


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-21 02:43:59 +00:00
audrasjb 060a547a9f WordPress 5.8.6.
Built from https://develop.svn.wordpress.org/branches/5.8@54583


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 19:47:19 +00:00
desrosj 74ecc7cf27 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
Built from https://develop.svn.wordpress.org/branches/5.8@54565


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 18:11:40 +00:00
audrasjb d8ffe4fe33 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.

Built from https://develop.svn.wordpress.org/branches/5.8@54548


git-svn-id: http://core.svn.wordpress.org/branches/5.8@54103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 17:48:01 +00:00
Peter Wilson 0bad0b3e48 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.

Built from https://develop.svn.wordpress.org/branches/5.8@54432


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-10 04:51:09 +00:00
desrosj 1fe18d5a70 WordPress 5.8.5.
Built from https://develop.svn.wordpress.org/branches/5.8@53989


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:27:06 +00:00
Sergey Biryukov d8dd6b5902 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.

Built from https://develop.svn.wordpress.org/branches/5.8@53965


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:29:59 +00:00
Sergey Biryukov 45f4c51ec4 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 [https://github.com/WordPress/pattern-directory/commit/69548ff1f0326c4fd4d9ea7390c48b6d9d227055 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.
Built from https://develop.svn.wordpress.org/branches/5.8@53675


git-svn-id: http://core.svn.wordpress.org/branches/5.8@53234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-06 16:28:01 +00:00
jorgefilipecosta e6ce4269a3 Update WordPress packages.
Updates the WordPress packages to their most recent patch versions.

Props xknown, sergey, audrasjb.
Built from https://develop.svn.wordpress.org/branches/5.8@52887


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:15:19 +00:00
audrasjb 47e5d13a47 WordPress 5.8.4.
Built from https://develop.svn.wordpress.org/branches/5.8@52880


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 22:08:15 +00:00
audrasjb d67264d17c 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.

Built from https://develop.svn.wordpress.org/branches/5.8@52848


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 20:49:03 +00:00
desrosj c4666346ad Post WordPress 5.8.3 version bump.
The 5.8 branch is now 5.8.4 alpha.
Built from https://develop.svn.wordpress.org/branches/5.8@52533


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 20:56:02 +00:00
desrosj eea95fdec8 WordPress 5.8.3.
Built from https://develop.svn.wordpress.org/branches/5.8@52487


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:45:01 +00:00
desrosj 949270aa6f Formatting: Correctly encode ASCII characters in post slugs.
Merges [52457] to the 5.8 branch.
Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/5.8@52465


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:37:02 +00:00
desrosj 66bb979049 Upgrade/Install: Avoid using unserialize() unnecessarily.
Merges [52456] to the 5.8 branch.
Props vortfu, xknown, dd32.
Built from https://develop.svn.wordpress.org/branches/5.8@52463


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:29:56 +00:00
desrosj 7d20ea9c50 Query: Improve sanitization within WP_Meta_Query.
Merges [52455] to the 5.8 branch.
Props vortfu, xknown, dd32.
Built from https://develop.svn.wordpress.org/branches/5.8@52461


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:25:00 +00:00
desrosj 6f7032dcf4 Query: Improve sanitization within WP_Tax_Query.
Merges [52454] to the 5.8 branch.
Props dd32, xknown, peterwilsoncc, ehtis.
Built from https://develop.svn.wordpress.org/branches/5.8@52459


git-svn-id: http://core.svn.wordpress.org/branches/5.8@52051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 17:22:00 +00:00
desrosj 266c585188 Help/About: Use the correct number of bugs fixed in 5.8.2.
Follow up to [52112].
Built from https://develop.svn.wordpress.org/branches/5.8@52113


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:05:56 +00:00
desrosj 04a101e4d0 WordPress 5.8.2.
Built from https://develop.svn.wordpress.org/branches/5.8@52112


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:03:58 +00:00
Dion Hulse 58a71bf8d5 Bump Akismet external to 4.2.1
See #54004.


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-04 02:36:18 +00:00
desrosj 276b489dc9 Post WordPress 5.8.2 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51987


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 20:09:57 +00:00
desrosj 4ec018ad06 WordPress 5.8.2 RC1.
Built from https://develop.svn.wordpress.org/branches/5.8@51986


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 19:46:58 +00:00
Sergey Biryukov fb283a3c27 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.
Built from https://develop.svn.wordpress.org/branches/5.8@51983


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 18:33:59 +00:00
desrosj dd352f4d54 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.
Built from https://develop.svn.wordpress.org/branches/5.8@51981


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-02 18:23:01 +00:00
desrosj 8488afbb66 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.
Built from https://develop.svn.wordpress.org/branches/5.8@51948


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-10-28 19:22:00 +00:00
desrosj d34152cfae 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.
Built from https://develop.svn.wordpress.org/branches/5.8@51889


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-10-05 17:25:02 +00:00
hellofromTonya 211e1f1156 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.
Built from https://develop.svn.wordpress.org/branches/5.8@51861


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-24 13:20:01 +00:00
desrosj 6d84519fd5 Build/Test Tools: Introduce the PHPUnit Polyfills package for easier cross branch testing.
This backports the PHPUnit Polyfills package and related test infrastructure changes to make it easier for developers to continue testing on multiple versions WordPress while adding tests for newer versions of PHP, which require more modern PHPUnit practices.

One of the changes included is the addition of wrappers for the new snake_case fixture methods in PHPUnit. This allows the native camelCase standard in PHPUnit to be used, but allows for developers to transition to the new naming conventions.

Props hellofromTonya, jrf, SergeyBiryukov, johnbillion, netweb, schlessera, jeherve, lucatume, desrosj.
Merges [51559,51560,51810-51813,51828] to the 5.8 branch.
See #53911.
Built from https://develop.svn.wordpress.org/branches/5.8@51838


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-21 19:06:00 +00:00
desrosj 4fa7af0ce1 Post WordPress 5.8.1 version bump.
The 5.8 branch is now 5.8.2 alpha.
Built from https://develop.svn.wordpress.org/branches/5.8@51778


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 03:16:02 +00:00
desrosj 87fd7274b4 WordPress 5.8.1.
Built from https://develop.svn.wordpress.org/branches/5.8@51771


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 02:12:58 +00:00
Andrew Ozz 3744b979ad Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases.
Props desrosj, davidbinda, azaozz.
Merges [51768] to the 5.8 branch.
Fixes #53762.

Built from https://develop.svn.wordpress.org/branches/5.8@51770


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-09 02:00:57 +00:00
desrosj 71adb4a0bf Help/About: Update the About page for WordPress 5.8.1.
Props audrasjb, circlecube, mukesh27.
Fixes #54083.
Built from https://develop.svn.wordpress.org/branches/5.8@51767


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 22:51:59 +00:00