41381 Commits

Author SHA1 Message Date
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
Jake Spurlock
eb38b4f5ea WordPress 5.4.1 RC 1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47620 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-24 16:04:57 +00:00
Jake Spurlock
587d061ff7 Block Editor: Update WordPress Packages for WordPress 5.4.1
The following packages were updated:

@wordpress/block-directory 1.5.7 ➡️ 1.5.8
@wordpress/block-editor 3.7.7 ➡️ 3.7.8
@wordpress/block-library 2.14.7 ➡️ 2.14.8
@wordpress/edit-post 3.13.9 ➡️ 3.13.10
@wordpress/editor 9.12.7 ➡️ 9.12.8
@wordpress/format-library 1.14.7 ➡️ 1.14.8

Props whyisjake, youknowriad, toro_unit, ellatrix, roo2, noahtallen, arnaudbroes, chrisvanpatten, apeatling, mcsf, jorgefilipecosta, talldanwp, aduth, noisysocks.
Fixes #49974.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47619 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-24 15:30:14 +00:00
Sergey Biryukov
96bd4552c2 Mail: Make the check for empty post title in wp-mail.php more resilient.
This addresses a regression in [47054], which caused posts sent via email to published with an empty title.

Props whyisjake, Otto42, MarkRH, MattyRob, mukesh27, afragen, pikamander2.
Merges [47580] to the 5.4 branch.
Fixes #49853.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47581 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-14 11:32:08 +00:00
Sergey Biryukov
5776c22846 Docs: Add a @since note for un-deprecated category_link and tag_link filters.
Follow-up to [47576].

Merges [47578] to the 5.4 branch.
See #49759.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47579 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-14 08:15:03 +00:00
Jake Spurlock
4b3e173d07 Taxonomy: Un-depracate category_link and tag_link filters.
Depracating these filter might have been an accident, so let's restore.

Props SergeyBiryukov, audrasjb, peterwilsoncc.

Fixes #49759 for the 5.4 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47577 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-14 00:32:37 +00:00
Jake Spurlock
830db833bd Media: Remove display: none; from the (visually hidden) <input type="file"> button used in Plupload to select files for uploading. Fixes selecting files in Edge <= 44 and iOS Safari.
Props treecutter, johnbillion, pbiron, isabel_brison, Ipstenu, azaozz.

Fixes #49753 for 5.4.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47575 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-14 00:26:07 +00:00
Jake Spurlock
f3ead4a4da Site Health instantiation prevents use of some hooks by plugins.
As the WP_Site_Health class is instantiated prior to plugins being required and the `plugins_loaded` hook being fired, it prevents plugins from using the following hooks in the functions called by `maybe_create_scheduled_event()`.

Brings [47568] to the 5.4 branch.

Fixes #49824.

Props peterwilsoncc, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47569 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-10 03:57:12 +00:00
Jake Spurlock
ef799eb05d Privacy: Make the deprecated wp_get_user_request_data() function available on front end.
Previously, it was accidentally made available only in admin context.

Follow-up to [44606], [47245].
Brings [47555] to the 5.4 branch.

Props garrett-eclipse, johnjamesjacoby, r-a-y, Dono12.

Fixes #49802.



git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47567 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-10 03:00:58 +00:00
Jake Spurlock
befa67320e Accessibility: Fix the headings hierarchy on the Freedoms page.
Props ryelle, afercia.
Bring r47558 to the 5.4 branch.

Fixes #49838.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47566 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-10 02:54:46 +00:00
Jake Spurlock
35f298a89c Customize: Give the WordPress logo a white background for dark mode browsers.
The favicon is transparent, which would normally look fine, but on a dark background it washes out.

Bring the fix in r47564 to the 5.4 branch.

Props DhrRob, audrasjb.

Fixes #49798.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47565 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-10 02:51:36 +00:00
Jake Spurlock
6116223077 REST API: Fix _fields filtering of registered rest fields.
Use rest_is_field_included when determining which additional fields to include to permit filtering by nested field properties.

Backportting r47511 to the 5.4 branch.

Props Dudo, kadamwhite, TimothyBlynJacobs.
Fixes #49648.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47563 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-09 22:52:45 +00:00
Jake Spurlock
88e7874399 REST API: Fix revisions controller get_item permission check.
r45812 incorrectly introduced a delete_post permissions check into the get_item method, breaking some plugins which requested revisions when generating previews.

Bring this commit back to the 5.4 branch.

Props sorenbronsted, yohannp, TimothyBlynJacobs.

Fixes #49645.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47562 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-09 22:50:26 +00:00
Jake Spurlock
e1c5c9786a Privacy: Support additional elements (table, ol, ul) in privacy policy guide new styling
The privacy policy guide supports a lot of HTML, include rules for lists, and ensure proper styling for the rest.

Backports the trunk commit to the 5.4 branch.

Props garrett-eclipse.
Fixes #49772.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47561 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-09 22:44:10 +00:00