Commit Graph

40649 Commits

Author SHA1 Message Date
Sergey Biryukov
1459e32c00 Upload: fix wp_unique_filename() to prevent name collisions with existing or future image sub-size file names, and add unit tests.
Props Viper007Bond, pbiron, azaozz.
Merges [46822], [46835] to the 5.3 branch.
Fixes #42437.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46836 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-09 12:19:19 +00:00
Sergey Biryukov
e53dc246dc Upload: Exclude PNG images from scaling after uploading. Fixes a case where resizing a very large PNG may create a scaled image that has smaller dimensions but larger file size than the original.
Props azaozz.
Merges [46809] to the 5.3 branch.
Fixes #48736.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46834 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-09 12:02:12 +00:00
Sergey Biryukov
f5afff0560 Twenty Twenty: Pass $post_meta and $location values to twentytwenty_start_of_post_meta_list and twentytwenty_end_of_post_meta_list actions to provide better context.
Props msaari, SergeyBiryukov.
Merges [46832] to the 5.3 branch.
Fixes #48906.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46833 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-09 11:49:15 +00:00
Sergey Biryukov
5485536237 Twenty Twenty: Replace Smooth Scroll JS implementation with scroll-behavior CSS property.
The JS implementation had multiple issues and did not work as expected.

This change includes an accessibility enhancement by using `prefers-reduced-motion: reduce` media query property for users that don't want motion effects. For further explanation on this media query, see MDN documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior#Accessibility_concerns

Props audrasjb, melchoyce, joostdevalk, Anlino, mauteri, sergiomdgomes, littlebigthing, williampatton, netweb, andraganescu, joyously, acosmin, mukesh27, hareesh-pillai.
Merges [46824] to the 5.3 branch.
Fixes #48763, #48551, #48866.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46825 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-07 11:06:06 +00:00
Sergey Biryukov
d0c1415415 Accessibility: Administration: Correct active button color for the alternative color schemes.
Follow-up to [46815].

Props melchoyce, ryelle, larrach, audrasjb, studiotwee, afercia, azaozz.
Merges [46817] to the 5.3 branch.
Fixes #48598.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46818 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-05 22:11:36 +00:00
Sergey Biryukov
cc663e635b Accessibility: Administration: Apply a unified design to all secondary buttons across all color schemes.
This ensures that secondary buttons have an appropriate color contrast in the alternative color schemes.

Props melchoyce, ryelle, audrasjb, ate-up-with-motor, afercia, sabernhardt.
Merges [46815] to the 5.3 branch.
Fixes #48585.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46816 602fd350-edb4-49c9-b593-d223f7449a82
2019-12-05 21:32:26 +00:00
Sergey Biryukov
861d1d6182 Site Health: Add a test for PHP default timezone.
The test reports a failure if the default timezone was changed with `date_default_timezone_set()` to anything other than `UTC`.

WordPress historically uses `UTC` as the default timezone for calculating date and time offsets, overriding it is not recommended and can cause widespread and obscure issues.

Props Rarst, Clorith, TimothyBlynJacobs.
Merges [46797] to the 5.3 branch.
Fixes #48692.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46798 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-28 15:55:38 +00:00
Sergey Biryukov
8717becdd6 Date/Time: Make get_permalink() more resilient against PHP timezone changes.
Overriding default PHP timezone with `date_default_timezone_set()`, while not recommended, should not inadvertently result in changing existing permalinks.

Add a unit test.

Props Rarst, steevithak, archon810, maciejmackowiak, Ov3rfly, Cybr, hometowntrailers, scvleon, miette49.
Merges [46795] to the 5.3 branch.
Fixes #48623.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46796 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-28 13:55:22 +00:00
Sergey Biryukov
e387958e9a KSES: Add support for gradient backgrounds.
Props jorgefilipecosta.
Merges [46793] to the 5.3 branch.
Fixes #48376.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46794 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-28 00:28:50 +00:00
Sergey Biryukov
c0284b853d Users: Display admin email verification screen in user's locale instead of site locale.
Props sathyapulse, TimothyBlynJacobs.
Merges [46788] to the 5.3 branch.
Fixes #48313.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46789 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-27 14:38:37 +00:00
Jonathan Desrosiers
8f25de113e Bundled Themes: Fixes JS TypeError in Twenty Twenty.
On mobile devices using a webkit browser, the menu and search modals could not be opened due to a `TypeError: document.body is null`. This commit fixes that issue by adding a `touch-enabled` class to the body for browsers that do not support media queries.

Props quicoto, poena, Boga86, acosmin, macmanx, ianbelanger.
Fixes #48601.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46787 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-26 18:41:31 +00:00
Sergey Biryukov
da60d83460 Users: Use correct variable when displaying the Additional Capabilities list in user profile.
Addresses a regression in [45926].

Props wpgurudev, aravindajith, anantajitjg, davidbaumwald.
Merges [46782] to the 5.3 branch.
Fixes #48725.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46783 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 14:00:22 +00:00
Sergey Biryukov
91acd00d72 Widgets: Avoid to move focus to the Image Widget "Insert from URL" field.
Fixes a bug after [45499], where the backbone view element isn't the input field any longer. Also, managing focus programmatically is often an assumption on a specific user flow and should generally be avoided, see #43169.

Props dufresnesteven, afercia.
Merges [46745] to the 5.3 branch.
See #43169.
Fixes #48588.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46781 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 13:49:22 +00:00
Sergey Biryukov
e0584e95ce Options, Meta APIs: Avoid a race condition causing the first of two subsequent requests updating different options at the same time to lose changes.
Every time an autoloaded option is updated or deleted, the `alloptions` cache is similarly updated. Due to the race condition, on any autoloaded option being updated, every other autoloaded option had its value set to the value at load time, causing a mismatch between the data in the persistent cache and the database.

This change introduces a `$force_cache` parameter for `wp_load_alloptions()` to force an update of the local `alloptions` cache from the persistent cache when an option is added, updated, or deleted, to minimize the chance of affecting other options.

Props fabifott, rmccue, tollmanz, johnjamesjacoby, spacedmonkey, dd32, jipmoors, tellyworth, jeremyclarke, joehoyle, boonebgorges, danielbachhuber, flixos90, jeichorn, mihdan, Grzegorz.Janoszka, SergeyBiryukov.
Merges [46753] and [46779] to the 5.3 branch.
Fixes #31245.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46780 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 13:44:16 +00:00
Sergey Biryukov
a68ccc8614 Accessibility: Media: Add an aria-pressed attribute to active button within a button group.
The `aria-pressed` attribute communicates semantically the "active" state of buttons that otherwise only look "active".

Props afercia.
Merges [46748] to the 5.3 branch.
Fixes #48355.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46778 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 11:18:04 +00:00
Sergey Biryukov
68a98448e9 Accessibility: Add an aria-current attribute to the Media Library switch links.
The `aria-current` attribute is a simple, effective, way to help assistive technology users orientate themselves within a set of items.

Props mayanksonawat, afercia.
Merges [46746] to the 5.3 branch.
Fixes #48271.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46777 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 10:21:25 +00:00
Sergey Biryukov
544663c065 Docs: Fix typo in wp_credits_section_title() description.
Switch descriptions for `wp_credits_section_title()` and `wp_credits_section_list()` to third-person singular verbs, per the documentation standards.

Props hareesh-pillai.
Merges [46738] to the 5.3 branch.
Fixes #48674.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46776 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 10:19:01 +00:00
Sergey Biryukov
7cb231475b Editor: Improve the appearance of tag cloud in Tags meta box in classic editor.
Props sathyapulse, Spaceshipone, tmatsuur, audrasjb, afercia.
Merges [46758] to the 5.3 branch.
Fixes #48592.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46775 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 10:13:00 +00:00
Sergey Biryukov
a8a6a1fc00 Date/Time: Remove mysql2date() usage in get_feed_build_date() to ensure the output includes correct timezone offset.
With the changes in [45908], `mysql2date()` works correctly for all local time inputs, but should not be used for UTC time inputs.

Add a unit test.

Props Rarst, lisota.
Merges [46756] and [46757] to the 5.3 branch.
Fixes #48675.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46774 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 10:10:31 +00:00
Sergey Biryukov
7659f94b47 Media: Avoid a PHP notice in image_downsize() when trying to replace a non-image URL with a rendered image from its meta.
Props Mte90, jrf, hareesh-pillai.
Merges [46772] to the 5.3 branch.
Fixes #48324.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46773 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-25 10:07:32 +00:00
Sergey Biryukov
c96459b66b Accessibility: Administration: Underline links on Dashboard that are located within a line of text and thus need to be underlined:
* "change your theme completely"
* Active theme in the "At a Glance" box
* "View all drafts" in the Quick Draft box

Split "Manage widgets or menus" into separate items for consistency with other links.

For better accessibility, links that are a part of other text should be underlined and not rely on color alone to be distinguished.

Per accessibility coding standards:
> When links can be identified as such by the context, for example because they’re part of a menu, or a set of links clearly identified as user interface controls, they don’t necessarily need to be underlined. In all the other cases, especially for links surrounded by other text (in a line or block of text), links need to be always underlined.
https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/#links-underline-or-no-underline
https://make.wordpress.org/accessibility/handbook/design/use-of-color/#not-by-color-alone

Props afercia, audrasjb, karmatosed.
Merges [46770] to the 5.3 branch.
Fixes #48406.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46771 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-24 19:58:13 +00:00
Sergey Biryukov
03b7f795f5 Twenty Twenty: Fix typos in a variable name and inline comment in assets/js/color-calculations.js.
Props tanvirul.
Merges [46747] to the 5.3 branch.
Fixes #48704.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46769 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-24 11:03:05 +00:00
Sergey Biryukov
379c09d621 Embeds: Remove CollegeHumor oEmbed provider, as the service does not exist anymore.
Props audrasjb, youknowriad.
Merges [46761] to the 5.3 branch.
Fixes #48696.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46768 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-24 11:01:02 +00:00
Sergey Biryukov
9b6286fd43 Twenty Twenty: Correctly align the author bio and bottom post meta on single posts on mobile.
Props nielslange, Anlino.
Merges [46762] to the 5.3 branch.
Fixes #48619.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46767 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-24 10:59:16 +00:00
Sergey Biryukov
c293937438 Twenty Twenty: Remove duplicate array key/value in TwentyTwenty_Non_Latin_Languages::get_non_latin_css().
Props manikmist09.
Merges [46765] to the 5.3 branch.
Fixes #48624.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46766 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-24 10:57:24 +00:00
Sergey Biryukov
995d8b3449 Post WordPress 5.3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46728 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 21:55:15 +00:00
Sergey Biryukov
6a38c45f34 WordPress 5.3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46726 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 20:26:31 +00:00
Sergey Biryukov
b324cafe44 Help/About: Move images to the CDN.
Props ryelle.
Merges [46724] to the 5.3 branch.
Fixes #47708.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46725 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 18:30:26 +00:00
Sergey Biryukov
4874ee7539 Bundled Themes: Update Twenty Twenty.
This brings Twenty Twenty in sync with GitHub. For a full list of changes since [46715], see fa8c3fc...a9e73ab.

Props Anlino, karmatosed, williampatton, poena, joyously, ianbelanger, chetan200891.
See #48110, #48386, #48450, #48505, #48557.
Merges [46722] to the 5.3 branch.
Fixes #48571.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46723 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 18:24:42 +00:00
Sergey Biryukov
fa56af86d8 Bundled Themes: Update copyright year in readme.txt.
Add a unit test to ensure the year stays up to date.

Props dkarfa, SergeyBiryukov.
Merges [46719] and [46720] to the 5.3 branch.
Fixes #48566.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46721 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 18:04:34 +00:00
Sergey Biryukov
8d18730355 Post WordPress 5.3 RC5 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46718 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 02:46:21 +00:00
Sergey Biryukov
f8296fc815 WordPress 5.3 RC5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46717 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 02:17:59 +00:00
Sergey Biryukov
d7de7823ea Bundled Themes: Update Twenty Twenty.
* Add `.has-background` excluding condition to wide and full group-blocks.

This brings Twenty Twenty in sync with GitHub. For a full list of changes since [46714], see 162edc0...fa8c3fc.

Reviewed by azaozz, SergeyBiryukov.
Props allancole, karmatosed.
See #48110, #48386, #48450, #48505.
Merges [46715] to the 5.3 branch.
Fixes #48557.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46716 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 02:06:19 +00:00
Sergey Biryukov
c898d6e1ec Bundled Themes: Update Twenty Twenty.
* Add a11y-friendly default text-colors when selecting a background-color.
* Remove margins for the group block when a background-color is set.
* Excluding pullquote block from width resize rules.

This brings Twenty Twenty in sync with GitHub. For a full list of changes since [46711], see ab5fa23...162edc0.

Reviewed by azaozz, SergeyBiryukov.
Props allancole, karmatosed.
See #48110, #48386, #48450, #48505.
Merges [46713] to the 5.3 branch.
Fixes #48557.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46714 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-12 01:44:51 +00:00
Sergey Biryukov
029d6e17c8 Bundled Themes: Update Twenty Twenty.
This brings Twenty Twenty in sync with GitHub. For a full list of changes since 5.3 RC4, see c267289...ab5fa23.

Reviewed by SergeyBiryukov.
Props williampatton, poena, andersnoren, desrosj, schlessera, leprincenoir, alextran, aristath, b-07, allancole, karmatosed, pierlo, joen, ianbelanger.
See #48110, #48386, #48450, #48505.
Merges [46701], [46702], [46711] to the 5.3 branch.
Fixes #48557.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46712 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-11 21:03:55 +00:00
Sergey Biryukov
269d00f003 Help/About: Update the 5.3 About page.
* Remove the SVG from the upper right corner.
* Make sure admin notices that should be hidden stay hidden.
* Address a11y issues with contrast.
* Fix an issue with the active nav tab hover.
* Prevent names on the credits from breaking out of the box.
* Update two strings with a more accurate information.
* Remove extra padding on the Credits tab.

Previously [46556], [46572], [46616].

Reviewed by SergeyBiryukov.
Props ryelle, afercia, audrasjb, francina, mapk, desrosj, YordanSoares, melchoyce, azaozz, johnbillion, davidbaumwald, luminuu, bwmarkle, la-geek, SergeyBiryukov.
Merges [46705] and [46709] to the 5.3 branch.
Fixes #47708.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46710 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-11 20:46:56 +00:00
Sergey Biryukov
f3d44de0b9 Tests: Fix a typo in an inline comment introduced in [46568].
Reviewed by whyisjake, SergeyBiryukov.
Props david.binda.
Merges [46707] to the 5.3 branch.
Fixes #48564. See #48312.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46708 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-11 20:30:16 +00:00
Jake Spurlock
e6ecd67461 Comments: Check if comment form element exists before adding a key handler to detect the cmd/ctrl-enter key press.
Brings [46700] to the 5.3 branch.

Follow-up to [45790].
Props raamdev.
Fixes #48543. See #41545.



git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46706 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-11 16:57:05 +00:00
Sergey Biryukov
7f5049eff8 Script Loader: In wp_default_packages_inline_scripts(), make sure the root URL middleware is registered before using the media middleware.
This allows for requests to retry post-processing large images using the `post-process` REST API endpoint to work as expected.

Reviewed by johnbillion, youknowriad, SergeyBiryukov.
Props azaozz, mikeschroder, TimothyBlynJacobs, epiqueras, johnbillion, youknowriad.
Merges [46703] to the 5.3 branch.
Fixes #48542.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46704 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-11 15:11:51 +00:00
Sergey Biryukov
22e9dadef6 Bundled Themes: Standardize the Required PHP and Tested Up To headers.
This change makes several changes to ensure consistency and accuracy for default theme headers:

- Removes `WordPress` from `Requires at least` headers.
- Ensures the `Requires at least` and `Requires PHP` headers are present in every default theme’s `style.css` file.
- Ensures `Tested up to` is present in every `readme.txt` file.
- Removes any headers not processed in both the `style.css` and `readme.txt` files for each theme.

Props Otto42, afragen.
Merges [46676] to the 5.3 branch.
Fixes #48517.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46699 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-11 11:37:42 +00:00
Andrew Ozz
d0e44e8187 Upload: When an image was scaled because it is larger than the big image threshold, use the originally uploaded image's dimensions in wp_get_missing_image_subsizes(). Fixes an edge case/inconsistent behaviour when a registered image sub-size is also larger than the big image threshold.
Props desrosj, azaozz.
Merges [46677] to the 5.3 branch.
Fixes #48518.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46680 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-08 22:55:34 +00:00
John Blackbourn
cdeeb8503a Post WordPress 5.3 RC4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46673 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-06 00:00:02 +00:00
John Blackbourn
a4ad868957 WordPress 5.3 RC4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46672 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 23:22:12 +00:00
Jonathan Desrosiers
40dcc57154 Bundled Themes: Update Twenty Twenty.
This brings Twenty Twenty in sync with GitHub. For a full list of changes since 5.3 RC3, see dea9290...c267289.

Props williampatton, poena, andersnoren.
See #48110, #48386, #48450, #48293.
Fixes #48505.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46669 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 22:28:25 +00:00
Jonathan Desrosiers
796f773f44 Emoji: Upgrade Twemoji to 12.1.3.
This point release does not add any images and only slightly modifies a few images without changing their meanings. Because of this, the same CDN location can be used and has been updated.

Merges [46665] to the 5.3 branch.

Reviewed by desrosj, SergeyBiryukov.
Props matstars, desrosj, Otto42, pento.
Fixes #48293.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46667 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 22:14:24 +00:00
John Blackbourn
c50d8f1aa8 Block Editor: Bug fixes targeted for WordPress 5.3 RC4.
Merges [46656] to the 5.3 branch.
Fixes #48502


git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46666 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 22:04:59 +00:00
Andrew Ozz
331f0d038a Media: Remove the variable number (from the big image threshold value) when generating file names for scaled images. This makes it easier to "calculate" the full size file name from the name of an intermediate size image.
Props ianmjones, azaozz.
Merges [46658] to the 5.3 branch.
Fixes #48453.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46659 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 20:56:25 +00:00
Andrew Ozz
ade5ec4d98 Upload:
- Run the `wp_generate_attachment_metadata` filter at the end in `wp_update_image_subsizes()` when new metadata was generated and additional image sub-sizes were created.
- Add another arg in the `wp_generate_attachment_metadata` filter for additional context.
- Fix inline docs and ensure the new image meta is always saved before starting image post-processing.

Props SergeyBiryukov, azaozz.
Merges [46621], [46622], and [46651] to the 5.3 branch.
Fixes #48472.

git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46655 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 18:42:43 +00:00
Jake Spurlock
358e313748 Revert: Undo r46639.
This was meant to be committed to /trunk. 

See #48337.


git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46653 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-05 17:34:06 +00:00
Jake Spurlock
969950c22c REST API: Fix for Yoda condition.
Little coding standards fix for the REST API.

Props mukesh27, spenserhale.
Fixes #48337.


git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46639 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-03 18:32:37 +00:00