41344 Commits

Author SHA1 Message Date
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
Jonathan Desrosiers
b8dea76b49 Administration: Add a new filter to extend set-screen-option.
Merges [47951] to the 5.4 branch.
Props: xknown, SergeyBiryukov.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47957 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 17:46:52 +00:00
Jonathan Desrosiers
404f397b40 Themes: Ensure a broken theme name is returned properly.
Merges [47950] to the 5.4 branch.
Props: sstoqnov.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47956 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 17:46:04 +00:00
Jonathan Desrosiers
6ef777e9a0 Formatting: Ensure that wp_validate_redirect() sanitizes a wider variety of characters.
Merges [47949] to the 5.4 branch.
Props: xknow, vortfu.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47955 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 17:44:37 +00:00
Jonathan Desrosiers
0977c0d6b2 Editor: Prevent HTML decoding on by setting the proper editor context.
Merges [47948] to the 5.4 branch.
Props: sstoqnov.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47954 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 17:43:34 +00:00
Jonathan Desrosiers
7e4bf4e201 Embeds: Ensure that the title attribute is set correctly on embeds.
Merges [47947] to the 5.4 branch.
Props xknown.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47953 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 17:42:15 +00:00
Sergey Biryukov
67467e8bf1 Site Health: Avoid a PHP notice in WP_Site_Health::wp_cron_scheduled_check() if async test response does not contain the expected result.
Additionally, avoid a PHP notice in `::get_test_php_version()` if the minimum recommended version of PHP could not be determined.

Props schlessera, oakesjosh.
Merges [47628] to the 5.4 branch.
Fixes #49943.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47931 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-09 11:25:53 +00:00
Jake Spurlock
25c230d78c WordPress 5.4.2 RC 1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47900 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-03 15:10:00 +00:00
Jake Spurlock
1de93bce67 WordPress 5.4.2 Beta 1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47899 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-03 15:06:06 +00:00
Sergey Biryukov
bfb382eaca Comments: Rename Walker_Comment::comment_text() to ::filter_comment_text() for clarity.
Ensure the comment object is not null before checking its status.

Follow-up to [47887].

Merges [47889] to the 5.4 branch.
See #49956.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47890 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-02 21:02:49 +00:00
Jake Spurlock
187fdd9aeb Comments: Ensure that unmoderated comments won't be search indexed.
After a comment is submitted, only allow a brief window where the comment is live on the site.

This brings the changes from [47887] to the 5.4 branch.

Fixes #49956.
Props: jonkolbert, ayeshrajans, Asif2BD, peterwilsoncc, imath, audrasjb, jonoaldersonwp, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47888 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-02 20:24:59 +00:00
Jake Spurlock
4bd9a82f02 Bundled Themes: Add missing RTL styles for to fix inconsistent margins on .alignwide and .alignfull items.
Fixes the inconsistent margins for alignwide and alignfull classes used on Cover Block when it is the first block on a page.

This commit brings the changes from [47846] to the 5.4 branch.

Props kthmd, utz119, nikhilbhansi, and sabernhardt.
Fixes #49435.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47847 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-23 06:23:14 +00:00
Jake Spurlock
bdbfcefbcb REST API: Ensure proper namespacing when registering routes.
The PR will corerce routes that have a leading slash and throwing a _doing_it_wrong notice while ensuring a proper namespace.

This brings the changes from [47842] to the 5.4 branch.

Fixes #49749.
Props TimothyBlynJacobs, skarabeq, afercia, skithund.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47843 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-22 20:58:50 +00:00
Sergey Biryukov
477682d957 Customize: Move the WordPress logo with a white background to the wp-includes directory.
This ensures that the image used as a default site icon looks good on a dark background.

The image was previously changed in the `wp-admin` directory, but the site icon is now loaded from `wp-includes`.

Follow-up to [36635], [47018], [47564], [47832].

Props ocean90.
Merges [47838] to the 5.4 branch.
Fixes #49798.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47839 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-21 09:11:47 +00:00
Sergey Biryukov
0aefc64b74 Customize: Load the default site icon from the wp-includes directory.
Files inside the `wp-admin` directory may not be publicly available.

Follow-up to [36635], [47018].

Merges [47832] to the 5.4 branch.

Props whyisjake, finomeno, ocean90.
Fixes #50131.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47833 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-20 10:36:04 +00:00
Jake Spurlock
5d8ae1d17c Bundled Themes: Twenty Nineteen decrease the font size for widget titles.
Update styles to decrease the font size for widget titles.

This commit brings the changes from [47586] to the 5.4 branch.

Props kjellr, mukesh27.
Fixes #45865.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47831 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-20 00:21:58 +00:00
Jake Spurlock
57aff4d1b7 Bundled Themes: Twenty Twenty custom post types that don't support authors, shows author box.
This fixes the issue where custom post types will show an author box, even if they don't support authors.

This brings the changes in [47799] to the 5.4 branch.

Props joyously, donmhico.
Fixes #48803.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47830 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 23:28:10 +00:00
Jake Spurlock
13d6da903e Bundled Themes: Twenty Twenty anchor links don't work in mobile menu.
Modifies the mobile modal menu javascript, so that anchor links will close the modal and scroll to the anchor within the page.

This brings the changes from [47784] to the 5.4 branch.

Props Giorgio25b, suzylah, yuhin, samful, bdcstr.
Fixes #48916.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47829 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:48:49 +00:00
Jake Spurlock
fafef76f03 Bundled Themes: Twenty Twenty add icon for g.page links.
Adds the option to use a g.page url for the social menu.

This brings the changes from [47795] to the 5.4 branch.

Props argentite, mayankmajeji.
Fixes #49088.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47828 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:39:48 +00:00
Jake Spurlock
56c823bb62 Bundled Themes: Twenty Twenty missed license for images.
Fixes the image license in the readme by removing screenshot.png.

Brings the changes from [47608] to the 5.4 branch.

Props h71, poena.
Fixes #49316.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47827 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:29:33 +00:00
Jake Spurlock
026ffa77c1 Bundled Themes: Twenty Twenty image caption is not aligned center when image is, on the front-end.
Fixes the image caption alignment issue by adding text-align: center; to .wp-block-image .aligncenter figcaption.

This brings the changes from [47689] to the 5.4 branch.

Props markusthiel, SergeyBiryukov, garethgillman.
Fixes #49320.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47826 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:26:51 +00:00
Jake Spurlock
54bb2e0a4f Bundled Themes: Twenty Twenty submenu items disappear underneath the Cover block.
Fixes the submenu issue by raising the z-index value of the site-header from 1 to 2.

This brings the changes in [47609] to the 5.4 branch.

Props kjellr, JavierCasares.
Fixes #49322.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47825 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:24:12 +00:00
Jake Spurlock
9823f0a4de File Editor: Remove CSS exceptions for the "Select plugin/theme to edit" and documentation "Look Up" buttons.
Buttons should use the default buttons styles, no exceptions.

This commit bring the changes from [47751] to the 5.4 branch.

Props passoniate, garethgillman, @afercia.
See #49197.
Fixes #49353.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47824 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:16:43 +00:00
Jake Spurlock
c8e5b7ebd5 Bundled Themes: Twenty Twenty inconsistent top and bottom margins for .alignwide and .alignfull on Chrome vs Safari.
Fixes the inconsistent margins for alignwide and alignfull classes used on Cover Block when it is the first block on a page.

Brings the changes from [47820] to the 5.4 branch.

Props kthmd, utz119, nikhilbhansi.
Fixes #49435.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47823 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:13:09 +00:00
Jake Spurlock
3e99fe9041 Bundled Themes: Twenty Twenty add GPLv2 compatible TikTok icon to the social icon menu.
This adds a GPLv2 compatible TikTok icon to replace the non-compatible TikTok icon and update the readme.txt file. Updates previous commit which used a non-compatible TikTok icon [47589]

This commit brings the changes from [47796] to the 5.4 branch.

Props poena, audrasjb, Emlebrun.
Fixes #49893.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47822 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-19 22:02:18 +00:00
Jake Spurlock
da58380eea Bundled Themes: Twenty Nineteen center and right-aligned heading accents appear broken.
Fixes the center and right aligned heading accents so that they align with the text, instead of just staying left-aligned.

Bringing the changes in [47591] to the 5.4 branch.

Props kjellr, melchoyce.
Fixes #49699.



git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47806 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-15 22:01:10 +00:00
Jake Spurlock
f76174fcb4 Bundled Themes: Twenty Twenty inline images in list blocks are not positioned correctly.
Fixes the alignment of inline images in list blocks to match the way they look in the editor.

Backporting the changes here to the 5.4 branch.

Props poena, mayankmajeji, JavierCasares.
Fixes #49793.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47805 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-15 21:51:53 +00:00
Jake Spurlock
1bcaabdf93 Bundled Themes: Twenty Twenty fix typo in readme.txt.
Fixed TikTok was misspelled as Tik Tok in the readme.txt.

Backporting change to the 5.4 branch.

Props Asif2BD.
Fixes #49932.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47804 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-15 21:48:31 +00:00
Jake Spurlock
6d915e9286 Bundled Themes: Twenty Eleven & Twenty Twelve dropdown category widget exceeds parent div when strings are long enough.
Fixes the width of the category dropdown by limiting the width of select items in widgets using max-width: 100%.

Backporting this change to the 5.4 branch.

Props gma992, karmatosed, ianbelanger.
Fixes #37926.



git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47803 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-15 21:42:33 +00:00
Sergey Biryukov
5139d29cce Themes: Add "Block Editor Styles" and "Wide Blocks" to the list of WordPress theme features.
These were added to Theme Directory API in anticipation of being committed to core for WordPress 5.2+, which has not happened until now.

Follow-up to [meta8273].

Merges [47790] to the 5.4 branch.
See #46272.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47791 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-14 09:20:11 +00:00
Sergey Biryukov
76327f965c Help/About: Move the changelog for WordPress 5.4.1 after the main heading to preserve correct heading hierarchy.
Props sabernhardt, audrasjb.
Fixes #50121.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47773 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-07 21:50:17 +00:00
Sergey Biryukov
2994be8c77 Taxonomy: Restore (un-deprecate) the tag_row_actions filter.
The filter provides a simple way for plugin authors to add actions generically for all taxonomy list tables without looping through each taxonomy individually.

Props joemcgill, delowardev.
Merges [47734] to the 5.4 branch.
Fixes #49808.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47767 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-06 13:24:09 +00:00
Jonathan Desrosiers
a533c26b7e Build/Test Tools: Introduce a command for restarting the local Docker environment.
This change introduces the env:restart command for easier restarting of the local Docker environment.

Merges [47730] to the 5.4 branch.

Props desrosj, ianbelanger.
Fixes #50039.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47731 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-01 12:59:06 +00:00
Jonathan Desrosiers
4a301fe53a The 5.4 branch is now WordPress 5.4.2 alpha
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47725 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 20:01:40 +00:00
Jake Spurlock
3760b16a38 Update the about page for WordPress 5.4.1 on the 5.4 branch
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47702 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 18:35:59 +00:00
Jonathan Desrosiers
028ee3a41b WordPress 5.4.1
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47666 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 17:54:08 +00:00
Sergey Biryukov
16843328b0 Docs: Correct @since versions, remove duplicate comment.
Coding Standards: Fix WPCS issues in `tests/formatting/SanitizeFileName.php`.

Follow-up to [47633], [47638].

Merges [47663], [47664] to the 5.4 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47665 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 17:25:12 +00:00
Jake Spurlock
e996da8d6c Formatting: Expand sanitize_file_name to have better support for utf8 characters.
Brings the changes in [47638] to the 5.4 branch.

Props: xknown, peterwilsoncc.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47643 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 15:52:19 +00:00
Jake Spurlock
6db848a490 Cache API: Ensure proper escaping around the stats method in the cache API.
Brings the changes in [47637] to the 5.4 branch.

Props: nickdaugherty, batmoo, whyisjake, westi.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47642 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 15:50:50 +00:00
Jake Spurlock
b6cace2a90 Query: Ensure that only a single post can be returned on date/time based queries.
Brings the changes in [47635] to the 5.4 branch.

Props: sstoqnov, peterwilsoncc.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47641 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 15:47:45 +00:00
Jake Spurlock
fe008569d9 User: Invalidate user_activation_key on password update.
Brings the changes in [47634] to the 5.4 branch.

Props: sstoqnov, sergeybiryukov.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47640 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 15:46:39 +00:00
Jake Spurlock
1179f08863 Customize: Add additional filters to Customizer to prevent JSON corruption.
This solution extends the `wp_insert_post_data` filter to pass in addition to the slashed/sanitized/processed data, and the slashed/sanitized/unprocessed data, to also pass the initial slashed/unsanitized/unprocessed data which was passed into `wp_insert_post()`. This then allows plugins to have complete control over how sanitization is performed based on the post type.

Brings the changes in [47633] to the 5.4 branch.

Props westonruter, peterwilsoncc, sstoqnov, whyisjake, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47639 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-29 15:45:27 +00:00
Sergey Biryukov
7639b62871 Correct version for post WordPress 5.4.1 RC 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47624 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-25 20:21:31 +00:00
Jake Spurlock
a1aea15bb2 5.4.1 Version Bump
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47621 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-24 16:46:26 +00:00