41387 Commits

Author SHA1 Message Date
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
Jorge Costa
4781d6a8eb Post WordPress 5.4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47543 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-31 21:11:59 +00:00
Jorge Costa
b924a61b60 WordPress 5.4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47541 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-31 19:54:50 +00:00
Jonathan Desrosiers
2bf7654b90 Bundled Themes: Bump version numbers and update changelogs in default themes for WordPress 5.4.
Reviewed by desrosj, SergeyBiryukov.
Props ianbelanger, desrosj, SergeyBiryukov.
Merges [47539] to the 5.4 branch.
Fixes #49743.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47540 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-31 19:16:16 +00:00
Sergey Biryukov
cafbe880cf Twenty Nineteen: Update style-editor.css and style-rtl.css after running the build task.
Follow-up to [47327], [47339].

Props ianbelanger.
Reviewed by desrosj, SergeyBiryukov.
Merges [47536] and [47537] to the 5.4 branch.
See #48526, #49410, #49743.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47538 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-31 18:58:56 +00:00
Sergey Biryukov
bb7f0700f7 Help/About: Use CDN URLs for 5.4 About page header images.
Reviewed by desrosj, SergeyBiryukov.
Merges [47532] to the 5.4 branch.
Fixes #49295.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47533 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-30 18:15:18 +00:00
Jorge Costa
40eaa0116e Post WordPress 5.4 RC 5 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47525 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-28 00:36:51 +00:00
Jorge Costa
8e6215ce58 WordPress 5.4 RC 5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47524 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-28 00:21:13 +00:00
Sergey Biryukov
84a95d21b6 Site Health: Remove esc_url() used on "Debugging in WordPress" article URL in WP_Fatal_Error_Handler::display_default_error_template().
The function may not be available in some contexts, for example if a fatal error happens in `advanced-cache.php` drop-in.

Props rob006.
Reviewed by jorgefilipecosta, SergeyBiryukov.
Merges [47515] to the 5.4 branch.
Fixes #49709.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47523 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-27 23:54:47 +00:00
Sergey Biryukov
ef0da0c4d1 Help/About: Improve accessibility of the 5.4 About page:
* Remove vertical text and unnecessary italics.
* Update H1 headings to be unique for each of the About, Credits, Freedoms, Privacy pages.

Props sabernhardt, ryelle, melchoyce, karmatosed, audrasjb, afercia, davidbaumwald, SergeyBiryukov.
Reviewed by ryelle, SergeyBiryukov.
Merges [47521] to the 5.4 branch.
See #49295.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47522 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-27 23:46:11 +00:00
Jorge Costa
7d877cdb17 Block Editor: Update WordPress Packages WordPress 5.4 RC 5 Take 2.
The following package versions were changed:
@wordpress/edit-post: 3.13.8 -> 3.13.9
Includes PR https://github.com/WordPress/gutenberg/pull/21220

Props aduth, mapk, ItsJonQ.
Merges [47517] to the 5.4 branch.
Fixes: #49717.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47518 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-27 22:12:36 +00:00
Jorge Costa
3792b2b915 Block Editor: Update WordPress Packages WordPress 5.4 RC 5.
The following package versions were changed:
@wordpress/annotations: 1.12.2 -> 1.12.3
@wordpress/block-directory: 1.5.6 -> 1.5.7
@wordpress/block-editor: 3.7.6 -> 3.7.7
@wordpress/block-library: 2.14.6 -> 2.14.7
@wordpress/blocks: 6.12.2 -> 6.12.3
@wordpress/components: 9.2.5 -> 9.2.6
@wordpress/core-data: 2.12.2 -> 2.12.3
@wordpress/edit-post: 3.13.7 -> 3.13.8
@wordpress/editor: 9.12.6 -> 9.12.7
@wordpress/format-library: 1.14.6 -> 1.14.7
@wordpress/list-reusable-blocks: 1.13.5 -> 1.13.6
@wordpress/nux: 3.12.5 -> 3.12.6
@wordpress/server-side-render: 1.8.5 -> 1.8.6
Description of editor changes included in the RC available at https://github.com/WordPress/gutenberg/pull/21210.

Props mcsf, aduth.
Merges [47513] to the 5.4 branch.
Fixes: #49716.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47514 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-27 18:18:59 +00:00
Jorge Costa
47fd4fd23b Post WordPress 5.4 RC 4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47505 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-24 21:56:27 +00:00
Jorge Costa
bbd6c25f6c WordPress 5.4 RC 4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47504 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-24 21:43:30 +00:00
Sergey Biryukov
14ed2bc179 Docs: Revert a type change for the $value parameter of WP_Dependencies::add_data() in [47170].
Although described as a string in several places, it's technically not limited to a particular type.

Props westonruter.
Reviewed by jorgefilipecosta, SergeyBiryukov.
Merges [47502] to the 5.4 branch.
Fixes #48303.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47503 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-24 21:06:53 +00:00
Sergey Biryukov
74aa56aa99 Help/About: Fix a typo on the about page and fix a link.
The text "on your" appeared two times. This commit fixes the issue and removes the duplication. It also updates the field guide permalink.

Props garrett-eclipse, ixkaito.
Reviewed by jorgefilipecosta, karmatosed, SergeyBiryukov.
Merges [47500] to the 5.4 branch.
See #49295.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47501 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-24 15:10:52 +00:00
Riad Benguella
b96fb9c719 Block Editor: Update WordPress Packages WordPress 5.4 RC 4.
The following package versions were changed:
@wordpress/annotations: 1.12.1 -> 1.12.2
@wordpress/block-directory: 1.5.5 -> 1.5.6
@wordpress/block-editor: 3.7.5 -> 3.7.6
@wordpress/block-library: 2.14.5 -> 2.14.6
@wordpress/blocks: 6.12.1 -> 6.12.2
@wordpress/components: 9.2.4 -> 9.2.5
@wordpress/core-data: 2.12.1 -> 2.12.2
@wordpress/data: 4.14.1 -> 4.14.2
@wordpress/data-controls: 1.8.1 -> 1.8.2
@wordpress/edit-post: 3.13.6 -> 3.13.7
@wordpress/editor: 9.12.5 -> 9.12.6
@wordpress/format-library: 1.14.5 -> 1.14.6
@wordpress/keyboard-shortcuts: 1.1.1 -> 1.1.2
@wordpress/list-reusable-blocks: 1.13.4 -> 1.13.5
@wordpress/notices: 2.0.1 -> 2.0.2
@wordpress/nux: 3.12.4 -> 3.12.5
@wordpress/rich-text: 3.12.1 -> 3.12.2
@wordpress/server-side-render: 1.8.4 -> 1.8.5
@wordpress/viewport: 2.13.1 -> 2.13.2
Description of editor changes included in the RC available at https://github.com/WordPress/gutenberg/pull/21083.

Props itsjonq, mcsf, aduth, jorgefilipecosta.
Merges [43274] to the 5.4 branch.
Fixes: #49688.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47499 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-24 10:03:29 +00:00
Sergey Biryukov
0e3d878e59 Help/About: Add design for 5.4 About page.
Props melchoyce, marybaum, marktimemedia, elmastudio, ryelle, karmatosed, audrasjb, afercia, francina, sabernhardt.
Reviewed by karmatosed, SergeyBiryukov.
Merges [47475] and [47476] to the 5.4 branch.
See #49295.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47477 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-20 17:43:15 +00:00
Jorge Costa
e98ca53443 Post WordPress 5.4 RC 3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47470 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 21:25:49 +00:00
Jorge Costa
77628f63ef WordPress 5.4 RC 3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47469 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 21:09:56 +00:00
Sergey Biryukov
22a31aa465 Toolbar: Move the logic for rendering the admin bar on wp_footer to wp_admin_bar_render().
Clarify in the function documentation that it is now called on `wp_body_open` action first, with `wp_footer` as a fallback.

Follow-up to [47221].

Reviewed by whyisjake, SergeyBiryukov.
Merges [47455] to the 5.4 branch.
Fixes #47053.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47467 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 19:26:34 +00:00
Sergey Biryukov
a200f499ed Site Health: Run the first scheduled site health check a day after the initial site setup.
This reduces the chance of displaying incorrect results due to running the check too early in first time setup scenarios.

Props Clorith, garrett-eclipse, roytanck, joostdevalk.
Reviewed by whyisjake, SergeyBiryukov.
Merges [47456] to the 5.4 branch.
Fixes #49577.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47466 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 19:23:14 +00:00
Sergey Biryukov
ffefbe22d1 Menus: When adding a label for special pages in wp_setup_nav_menu_item() strip all HTML tags, as the label is escaped on output.
Follow-up to [47211], [47213].

Props stiofansisland.
Reviewed by whyisjake, SergeyBiryukov.
Merges [47458] to the 5.4 branch.
Fixes #49374.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47465 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 19:19:05 +00:00
Sergey Biryukov
9526b7f9f3 Help/About: Use consistent vertical whitespace between sections on Freedoms page.
Props chetan200891.
Reviewed by whyisjake, SergeyBiryukov.
Merges [47443] to the 5.4 branch.
Fixes #49619.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47464 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 19:15:18 +00:00
Jorge Costa
7c0c040208 Block Editor: Update WordPress Packages WordPress 5.4 RC 3.
The following package versions were changed:
@wordpress/block-directory: 1.5.4 -> 1.5.5
@wordpress/block-editor: 3.7.4 -> 3.7.5
@wordpress/block-library: 2.14.4 -> 2.14.5
@wordpress/components: 9.2.3 -> 9.2.4
@wordpress/dependency-extraction-webpack-plugin: 2.3.0 -> 2.4.0
@wordpress/edit-post: 3.13.5 -> 3.13.6
@wordpress/editor: 9.12.4 -> 9.12.5
@wordpress/format-library: 1.14.4 -> 1.14.5
@wordpress/list-reusable-blocks: 1.13.3 -> 1.13.4
@wordpress/nux: 3.12.3 -> 3.12.4
@wordpress/server-side-render: 1.8.3 -> 1.8.4

Props aduth.
Merges [47462] to the 5.4 branch.
Fixes: #49657.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47463 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-17 19:06:06 +00:00
Sergey Biryukov
711109f09c Tests: Download Chromium for e2e tests only.
This reduces the chance of random failures due to network timeouts and avoids the overhead of unnecessarily downloading ~120 MB for PHP or JS tests.

Reviewed by mikeschroder, gziolo.
Merges [47449] and [47459] to the 5.4 branch.
Fixes #49621.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47460 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-16 12:26:00 +00:00
Tammie Lister
bb0451e069 Post WordPress 5.4 RC 2 version bump
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47447 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-10 21:38:00 +00:00
Tammie Lister
554448783a WordPress 5.4 RC 2
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47446 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-10 21:23:07 +00:00
Sergey Biryukov
2742a114ea Bundled Themes: Update calendar widget styles for 5.4 markup to fix the alignment of a single month link.
Follow-up to [47405].

Props sabernhardt.
Reviewed by ianbelanger, SergeyBiryukov.
Merges [47444] to the 5.4 branch.
Fixes #49549.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47445 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-10 20:54:11 +00:00
Andrew Duthie
9c4cb87efc Block Editor: Update WordPress Packages WordPress 5.4 RC 2.
The following package versions were changed:
@wordpress/block-directory: 1.5.3 -> 1.5.4
@wordpress/block-editor: 3.7.3 -> 3.7.4
@wordpress/block-library: 2.14.3 -> 2.14.4
@wordpress/edit-post: 3.13.4 -> 3.13.5
@wordpress/editor: 9.12.3 -> 9.12.4
@wordpress/format-library: 1.14.3 -> 1.14.4

Props aduth, gziolo, mapk.
Merges [47441] to the 5.4 branch.
Fixes: #49611.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47442 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-10 15:40:25 +00:00
Sergey Biryukov
aa8e61db55 Bundled Themes: Twenty Twenty content font CSS selector is too important - updated.
This adds more selectors for headings, tables, addresses, cite, figcaption, file and caption blocks to make the font-family match as before [47133].

Props alexandreb3, ianbelanger.
Reviewed by SergeyBiryukov.
Merges [47439] to the 5.4 branch.
Fixes #49318.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47440 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-10 11:02:09 +00:00
Sergey Biryukov
98d96bbc7b Help/About: Update and correct some strings for 5.4 About page.
Props garrett-eclipse, Ipstenu, ocean90, tobifjellner, la-geek.
Reviewed by ocean90, SergeyBiryukov.
Merges [47436] to the 5.4 branch.
See #49295.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47438 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-09 00:14:17 +00:00
Sergey Biryukov
c15c43fc58 REST API: Fix typo in disable-custom-gradients theme feature description.
Props Ipstenu, tobifjellner, pixelverbieger.
Reviewed by ocean90, johnbillion, SergeyBiryukov.
Merges [47432] to the 5.4 branch.
Fixes #49585.

git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47437 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-09 00:12:48 +00:00
Peter Wilson
47b57cd293 Branch 5.4
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47425 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-04 01:14:35 +00:00
Jorge Costa
66f510bda0 Post WordPress 5.4 RC 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@47424 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 22:00:22 +00:00
Jorge Costa
d4f965278a WordPress 5.4 RC 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@47423 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 21:41:29 +00:00
Sergey Biryukov
0ffce72ed0 Help/About: Add strings for 5.4 About page.
Props elmastudio, chanthaboune, francina, marybaum, audrasjb.
See #49295.

git-svn-id: https://develop.svn.wordpress.org/trunk@47422 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 21:20:45 +00:00
Jorge Costa
ae5596bf0a Editor: Update WordPress packages to make editor full-screen by default.
The following package versions were changed:
@wordpress/e2e-test-utils: 4.3.0 -> 4.3.1
@wordpress/edit-post: 3.13.3 -> 3.13.4
This commit update allows the following PR to be part of trunk https://github.com/WordPress/gutenberg/pull/20611.

Props youknowriad, mcsf, mapk.
Fixes: #49574.

git-svn-id: https://develop.svn.wordpress.org/trunk@47421 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 20:43:49 +00:00
Sergey Biryukov
60f78cd845 Privacy: Prevent unexpected scrolling when clicking the "Copy this section to clipboard" button on Privacy Policy Guide screen.
Props garrett-eclipse, birgire, davidbaumwald, pbiron.
Fixes #49540.

git-svn-id: https://develop.svn.wordpress.org/trunk@47420 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 17:49:53 +00:00
Sergey Biryukov
7dd3e6edd9 Media: Improve the appearance of image editor on small and medium screens.
This prevents the main area of Edit Media screen from being pushed down too far.

Props sabernhardt, afercia, fierevere, sathyapulse, mikeschroder, johnbillion.
Fixes #48780. See #47136.

git-svn-id: https://develop.svn.wordpress.org/trunk@47418 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 17:19:55 +00:00
Jorge Costa
ac4de42983 Scripts: Use core-js url as polyfill for window.URL.
URL polyfill from the polyfill-library library is not spec-conformant, in a way which negatively impacts its usability for pending revisions to the block editor. Specifically, there were revisions to the implementation of the wp-url script to detect URL validity by relying on thrown errors from the URL constructor, but this specific behavior is not implemented in this version of the polyfill.
There was another issue in r47238, which is that the test used to check whether the polyfill should be included is not accurate. This commit uses a different check and fixes the issue.

Props aduth.
Fixes: #49360.

git-svn-id: https://develop.svn.wordpress.org/trunk@47416 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 16:53:32 +00:00
Sergey Biryukov
360c98280c Site Health: Fix typo in Site Health Status dashboard widget.
Follow-up to [47063], [47413].

Props Clorith, dlh.
See #49562.

git-svn-id: https://develop.svn.wordpress.org/trunk@47415 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 12:20:35 +00:00
Sergey Biryukov
cd84eaac26 Docs: Correct formatting of some DocBlocks in Plugin_Upgrader and Theme_Upgrader per the documentation standards.
See #49400.

git-svn-id: https://develop.svn.wordpress.org/trunk@47414 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 11:38:00 +00:00
Sergey Biryukov
288f5234e9 Site Health: Improve the strings in Site Health Status dashboard widget.
Follow-up to [47063].

Props dlh.
Fixes #49562.

git-svn-id: https://develop.svn.wordpress.org/trunk@47413 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 11:20:00 +00:00
John Blackbourn
e45162e496 Privacy: Fix the URLs and legacy redirects for the personal data export and erasure screens.
Props Jurgen Oldenburg, garrett-eclipse

Fixes #49476

git-svn-id: https://develop.svn.wordpress.org/trunk@47412 602fd350-edb4-49c9-b593-d223f7449a82
2020-03-03 00:48:21 +00:00