41387 Commits

Author SHA1 Message Date
Jb Audras
2575350d30 Grouped backports to the 5.4 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.4 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.



git-svn-id: https://develop.svn.wordpress.org/branches/5.4@55785 602fd350-edb4-49c9-b593-d223f7449a82
2023-05-16 15:50:15 +00:00
Jonathan Desrosiers
02b36d0325 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.4 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@55521 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:09:06 +00:00
Peter Wilson
3ad77aebc2 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.
Merges [55350] to the 5.4 branch.
Fixes #57216.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@55378 602fd350-edb4-49c9-b593-d223f7449a82
2023-02-21 02:51:26 +00:00
Peter Wilson
03d066cf25 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.4 branch.
Fixes #57306.
See #56793.



git-svn-id: https://develop.svn.wordpress.org/branches/5.4@54981 602fd350-edb4-49c9-b593-d223f7449a82
2022-12-15 04:30:19 +00:00
Jb Audras
ac115ed2a2 5.4.12
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@54588 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-17 19:48:59 +00:00
Jonathan Desrosiers
5fd629b835 Editor: Bump @wordpress packages for 5.4.12.
Package updates for bug fixes:

* @wordpress/block-library: 2.14.11
* @wordpress/edit-post: 3.13.13

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@54574 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-17 19:21:10 +00:00
Jb Audras
2ab7887a4d Grouped backports to the 5.4 branch.
- Editor: Bump @wordpress packages for the 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`,
- 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.4 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.4@54559 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-17 18:01:26 +00:00
Peter Wilson
fa2aa44e44 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.4 branch.
See #56532.




git-svn-id: https://develop.svn.wordpress.org/branches/5.4@54436 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-10 05:05:33 +00:00
Jonathan Desrosiers
5158e77b08 WordPress 5.4.11.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@53993 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 17:25:08 +00:00
Sergey Biryukov
c440a36603 Grouped backports to the 5.4 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.4 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@53969 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-30 15:35:38 +00:00
Jonathan Desrosiers
41d05c3951 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.

Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.

Merges [50473], [50704], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 5.4 branch.
See #56095.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@53601 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 16:38:15 +00:00
David Baumwald
092e05913e WordPress 5.4.10.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@52872 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 21:57:08 +00:00
Jb Audras
514d69cfc1 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.4 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@52852 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 21:06:25 +00:00
Jonathan Desrosiers
ecf4f6d77e WordPress 5.4.9.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@52491 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:44:31 +00:00
Jonathan Desrosiers
476cd02a78 Grouped backports to the 5.4 branch.
- Query: Improve sanitization within `WP_Tax_Query`.
- Query: Improve sanitization within `WP_Meta_Query`.
- Upgrade/Install: Avoid using `unserialize()` unnecessarily.
- Formatting: Correctly encode ASCII characters in post slugs.

Merges [52454-52457] to the 5.4 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@52469 602fd350-edb4-49c9-b593-d223f7449a82
2022-01-06 18:09:54 +00:00
Jonathan Desrosiers
c9f13b42e2 WordPress 5.4.8.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@52117 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-10 17:06:37 +00:00
Jonathan Desrosiers
21b00959df 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, peterwilsoncc.
Merges [51883] to the 5.4 branch.
Fixes #54207. See #50828.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@52100 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-10 02:14:04 +00:00
Tonya Mork
a92437e394 Build/Test Tools: Fix test forward-compatibility layer.
In [51844], 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 [51844].

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

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@51865 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-24 14:20:53 +00:00
Tonya Mork
0880a888cc 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.4 branch.
See #53911.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@51844 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-21 23:02:13 +00:00
Jonathan Desrosiers
e2915dc176 WordPress 5.4.7.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@51762 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 21:33:38 +00:00
Jonathan Desrosiers
560f824e56 Grouped merges for 5.4.7.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.
- Use hashed/deterministic moduleIDs in webpack config.

Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad, gziolo.
Merges [50940-50941,50984-50985,51426] to the 5.4 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@51754 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 21:18:49 +00:00
Sergey Biryukov
8240abeb3d General: Only use _jsonp_wp_die_handler() for JSONP REST API requests.
Props mdawaffe, peterwilsoncc.
Merges [51740] to the 5.4 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@51745 602fd350-edb4-49c9-b593-d223f7449a82
2021-09-08 17:23:22 +00:00
Peter Wilson
a95113ea0c WordPress 5.4.6.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50872 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-12 23:13:01 +00:00
Peter Wilson
ec46466ae6 External libraries: Improve attachment handling in PHPMailer
Props: audrasjb, ayeshrajans, desrosj, peterwilsoncc, xknown.
Partially merges [50799] to the 5.4 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50850 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-12 22:25:45 +00:00
Peter Wilson
c4f2ac8650 Version bump for 5.4.5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50739 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-15 01:33:15 +00:00
Jonathan Desrosiers
030bf138cf Grouped merges for 5.4.5.
* REST API: Allow authors to read their own password protected posts.
* About page update.

Merges [50717] to the 5.4 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50727 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-15 01:07:12 +00:00
Peter Wilson
6e9456a278 Editor: Update of @wordpress npm packages for 5.4.5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50723 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-15 00:12:26 +00:00
Jonathan Desrosiers
79309c7860 Build/Test Tools: Prevent PHPUnit tests on push for forks/private mirrors.
The reorganization of the PHPUnit workflow in [50441] unintentionally caused the tests to be run for every `push` event, even for forks and private mirrors.

Previously, the second job required the first one to pass, and the conditional check on the first prevented both from running. Because the first job is no longer required for the second, both jobs must have the appropriate conditional check.

Merges [50670] to the 5.4 branch.
Fixes #52983.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50674 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-06 15:26:39 +00:00
Jonathan Desrosiers
84606b7363 Build/Test Tools: Backport GitHub Action and build improvements to the 5.4 branch.
This backports several build and test tool improvements to the 5.4 branch. Most notably, this includes:

- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- The ability to run PHPUnit tests from `src` instead of `build` [50441-50443].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.

Merges [50267,50299,50379,50387,50413,50416,50432,50435-50436,50441-50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598] to the 5.4 branch.
See #50401, #51734, #51801, #51802, #52548, #52608, #52612, #52623, #52624, #52625, #52645, #52653, #52658, #52660, #52667.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50604 602fd350-edb4-49c9-b593-d223f7449a82
2021-03-26 18:20:24 +00:00
Jonathan Desrosiers
d43ceec93e Build/Test Tools: Restore automated testing in the 5.4 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.

In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.

Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 5.4 branch.
See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50303 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 18:00:09 +00:00
Jonathan Desrosiers
74adc1b1fb Build/Test Tools: Fix tests after [50189].
This removes a test assertion defending against version ranges in the node value in package.json files. This is now supported.

Props peterwilsoncc.
Merges [50192] to the 5.4 branch.
See #52341.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50195 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-05 03:42:15 +00:00
Jonathan Desrosiers
40279adbe8 Build/Test Tools: Support NodeJS 14.x in the 5.4 branch.
This updates the 5.4 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy.

In addition to backporting the package updates that happened after branching 5.4, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin.
Merges [47867,48213,47872-47873,48705,49636,49933,49937,49939,49940,49983,49989,50017,50126,50176,50185] to the 5.4 branch.
See #52341.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@50189 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-05 03:10:08 +00:00
Jonathan Desrosiers
ac3c4398dd Build/Test Tools: Remove the TravisCI configuration file.
In [49162], GitHub Action workflow configuration files were introduced to run all of Core’s automated testing with the intent to fully transition after some time was allowed for testing.

After two full months of testing, the time to finish this transition has come.

We thank TravisCI for testing the codebase through nearly 20 major and many more minor releases.

Merges [49876] to the 5.4 branch.
See #52161. See #50401.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49879 602fd350-edb4-49c9-b593-d223f7449a82
2020-12-22 21:05:04 +00:00
Jonathan Desrosiers
0bc3f54eb6 Build/Test Tools: Remove the Appveyor configuration file.
Appveyor was added to Core in [44594] to ensure that NPM and the WordPress build tools continue to work correctly on Windows systems as changes are made. Using an additional service for this was required at the time, TravisCI did not support testing on Windows.

[49162] introduced a GitHub Action workflow that performed the same testing. Since all automated testing is moving to GitHub Actions, using Appveyor is no longer necessary, and it’s preferable to have all automated testing in one location as much as possible.

Props ayeshrajans.
Merges [49779] to the 5.4 branch.
See #51968.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49811 602fd350-edb4-49c9-b593-d223f7449a82
2020-12-17 12:27:01 +00:00
Sergey Biryukov
2392e7aeec Security: Update the Security Policy for the 5.4 branch.
See [49645], [49646].
Props whyisjake.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49648 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-17 23:05:41 +00:00
Jonathan Desrosiers
dc051229e4 Build/Test Tools: Remove the E2E test job from the 5.4 branch.
The E2E test job does not currently perform any meaningful tests, so continuing to run them is not necessary for older branches.

Props johnbillion.
See #51705.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49502 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-04 15:56:22 +00:00
Jonathan Desrosiers
1245792122 Build/Test Tools: Trim the test matrix on Travis for the 5.4 branch.
This removes the PHP 7.3 (without Memcached), 7.2, and 7.1 jobs. It also removes the PHP 8 and PHP compatibility jobs. These were failing, and they will not be fixed in older branches.

See #51705.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49498 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-04 15:09:16 +00:00
Sergey Biryukov
fb6704278c WordPress 5.4.4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49459 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-30 19:45:03 +00:00
Jake Spurlock
64fcaef008 Upgrade/Install: During the install process, add additional checking for exising tables.
This commit brings the changes in [49452] to the 5.4 branch.

If reinstalling WordPress, there is a condition where tables would exist in the database. Ensures that when that is the case, the install process can carry along without issue.

Fixes #51676.

Props xknown, garubi, mukesh27, desrosj, johnbillion, metalandcoffee, davidbaumwald, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49454 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-30 18:25:22 +00:00
Jonathan Desrosiers
c14bc638dc WordPress 5.4.3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49410 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:33:24 +00:00
Jake Spurlock
f91233e67f General: WordPress updates
* XML-RPC: Improve error messages for unprivileged users.
* External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
* Embeds: Disable embeds on deactivated Multisite sites.
* Coding standards: Modify escaping functions to avoid potential false positives.
* XML-RPC: Return error message if attachment ID is incorrect.
* Upgrade/install: Improve logic check when determining installation status.
* Meta: Sanitize meta key before checking protection status.
* Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.

Brings the changes from [49380,49382-49388] to the 5.4 branch.

Props xknown, zieladam, peterwilsoncc, whyisjake, desrosj, dd32.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49391 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 18:39:14 +00:00
Jonathan Desrosiers
893b063f68 Build/Test Tools: Allow the desired version of PHPUnit to be passed to the local Docker environment.
This introduces the `LOCAL_PHPUNIT` environment variable, which allows the desired version of PHPUnit to be specified when running the PHP tests within the local Docker environment.

Because support for newer versions of PHPUnit is not backported, some versions of PHP need the ability to run multiple versions of PHPUnit for different branches. This adds the flexibility needed to use the Docker environment within those older branches to run the PHP tests.

Props johnbillion, SergeyBiryukov.
Merges [49362] to the 5.4 branch.
See #50042.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49364 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-28 23:46:11 +00:00
Jonathan Desrosiers
d26e9ee33b Build/Test Tools: Specify a type when using wp config set.
This prevents an error if constants are not predefined when running the Docker install script while using older combinations of WordPress/PHP/WP-CLI.

Backports [49335] to the 5.4 branch.
See #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49341 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 19:04:14 +00:00
Sergey Biryukov
3d5b6739b7 Build Tools: Fix running installing Composer dependencies using Composer 2.0.
This updates the `dealerdirect/phpcodesniffer-composer-installer` package to allow installing version `0.7.0` which supports Composer 2.0.

Props itowhid06, jrf.
Merges [49306] to the 5.4 branch.
See #51624.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@49318 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 00:04:51 +00:00
Sergey Biryukov
0de3bb6375 Tests: Temporarily skip PDF tests if they fail due to ImageMagick permission errors.
Merges [48338], [48341] to the 5.4 branch.

See #50573.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@48366 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-07 09:32:25 +00:00
Sergey Biryukov
9c3d6f9289 Administration: Pass the result of set-screen-option filter to the new set_screen_option_{$option} filter to ensure backward compatibility.
Rename the `$keep` parameter of both filters to `$screen_option` for clarity, update the documentation to better reflect its purpose.

Follow-up to [47951].

Props Chouby, sswells, SergeyBiryukov.
Merges [48241] to the 5.4 branch.
Fixes #50392.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@48244 602fd350-edb4-49c9-b593-d223f7449a82
2020-07-01 09:43:25 +00:00
Sergey Biryukov
ff300abc3c Bundled Themes: Bump Twenty Twenty and Twenty Nineteen versions.
This was intended for the WordPress 5.4.2 release, but will now be released with WordPress 5.4.3 instead.

Props ianbelanger, ocean90.
Merges [47800] and [47952] to the 5.4 branch.
Fixes #50359. See #50174.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@48029 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-11 18:50:45 +00:00
Jonathan Desrosiers
b7efcf9751 Post WordPress 5.4.2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@48025 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 22:48:37 +00:00
Jonathan Desrosiers
08fbe65384 WordPress 5.4.2.
Props whyisjake, audrasjb, desrosj.
Fixes #50269.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47989 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 21:30:59 +00:00
Jake Spurlock
9a3ba04a57 Editor: Ensure latest comments can only be viewed from public posts.
This brings the changes from [47984] to the 5.4 branch.

Props: poena, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47985 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 19:21:12 +00:00