Commit Graph

42320 Commits

Author SHA1 Message Date
Sergey Biryukov
8a8346a4ca Bootstrap/Load: Revert [49161] from the 5.5 branch.
See #50913.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49164 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-15 21:17:08 +00:00
Aaron Jorbin
2d12c86d82 Bootstrap/Load: Don't assume WP_CONTENT_DIR is defined
When the mysql extention isn't loaded and a custom db dropin is not in place, we give folks a nice error. However, we can't assume that the WP_CONTENT_DIR constant is set yet since this runs before we define default constants.

This fixes a PHP8 error.

See: #50913.



git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49161 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-15 17:05:48 +00:00
Sergey Biryukov
c87e26396b Comments: Check if a valid comment ID was passed when editing a comment.
This avoids a PHP notice after submitting the Edit Comment form.

Follow-up to [48050].

Props regan.khadgi.
Merges [48958] to the 5.5 branch.
Fixes #51263.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48959 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-08 22:44:56 +00:00
Sergey Biryukov
54d13789fe Media: In wp_ajax_image_editor(), check if the error property exists before accessing it.
This avoids a PHP notice when editing an image.

Follow-up to [48375].

Props Mista-Flo.
Merges [48946] to the 5.5 branch.
Fixes #51251.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48956 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-07 13:05:15 +00:00
Sergey Biryukov
b3e77f3bbd Administration: Give the $error variable in wp-admin/admin-header.php a more descriptive name.
This avoids a conflict with the same global variable used elsewhere, e.g. in Theme Editor.

Follow-up to [48850].

Props vinayak.anivase.
Merges [48938] to the 5.5 branch.
Fixes #51219.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48955 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-07 13:03:42 +00:00
Jonathan Desrosiers
10a0ec4651 Post WordPress 5.5.1 version bump. The 5.5 branch is now 5.5.2 alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48936 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-01 19:20:53 +00:00
Jonathan Desrosiers
19379b2a09 WordPress 5.5.1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48934 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-01 18:50:39 +00:00
Sergey Biryukov
71e0a285f9 Help/About: Update the About page for 5.5.1.
Props audrasjb, desrosj, SergeyBiryukov.
Fixes #51202.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48933 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-01 17:42:19 +00:00
Sergey Biryukov
1638c5cb9d Help/About: Fix typo and remove trailing spaces from some strings.
Props mukesh27, casiepa, davidbaumwald.
Merges [48809] to the 5.5 branch.
Fixes #51028.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48932 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-01 17:22:08 +00:00
Jonathan Desrosiers
f71ed0c88d Post WordPress 5.5.1 RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48928 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 23:45:24 +00:00
Jonathan Desrosiers
b25343788c WordPress 5.5.1 RC2.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48927 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 23:27:24 +00:00
Jonathan Desrosiers
ffb0bf91fa Tests: Move the tests for get_the_modified_time() to a more appropriate place.
Add some new tests to better cover the functionality, for consistency with `get_the_date()` and `get_the_time()`.

Follow-up to [48911], [48912], [48918].

Props wittich.
Merges [48924] to the 5.5 branch.
Fixes #51184.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48926 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 22:49:18 +00:00
Jonathan Desrosiers
175bb78df9 Script Loader: Add backward compatibility for JavaScript i18n globals and properties deprecated in WordPress 5.5.
The recommended approach for any plugins using these globals or properties is to switch to the newer `wp.i18n` functions.

In the meantime, this ensures that accessing any of these globals does not break the rest of the code on the page, and an appropriate warning message is logged to the JavaScript console.

Follow-up to: https://core.trac.wordpress.org/query?summary=~wp.i18n&milestone=5.5

Props omarreiss, peterwilsoncc, kbjohnson90, johnbillion, TimothyBlynJacobs, joostdevalk, ocean90, desrosj, SergeyBiryukov.
Merges [48923] to the 5.5 branch.
Fixes #51123.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48925 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 22:41:11 +00:00
Jonathan Desrosiers
05473e0fd0 Date/Time: In get_the_date() and related functions, pass the original, unmodified $format value to the filters.
Additionally, simplify the `$format` argument checks for consistency with similar checks in `get_the_modified_date()` and `get_the_modified_time()`.

Follow-up to [48912].

Props Rarst.
Merges [48918] to the 5.5 branch.
See #51184.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48922 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 18:58:04 +00:00
Jonathan Desrosiers
01c896073d Date/Time: Make sure get_the_date() and related functions return correct time if the format was specified as false.
Technically, the `$format` argument should always be a string, but passing `false` used to work before [47808], so this restores backward compatibility.

The list of affected functions:

- `get_the_date()`
- `get_the_time()`
- `get_comment_date()`
- `get_comment_time()`

Props wittich, Rarst, akabarikalpesh, SergeyBiryukov.
Merges [48912] to the 5.5 branch.
Fixes #51184.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48921 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 18:56:22 +00:00
Jonathan Desrosiers
0318feb679 Tests: Bring some consistency to Date/Time tests:
- Move some tests from `post.php` to a more appropriate location in the `date` directory.
- Rename `date/postTime.php` to `date/getPostTime.php` to match the function name. 

Props Rarst.
Merges [48911] to the 5.5 branch.
See #51184.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48920 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 18:53:52 +00:00
Jonathan Desrosiers
5e7d0e50bf Themes: Normalize the installed theme path in Theme_Installer_Skin::do_overwrite() before comparing with the uploaded theme.
This ensures that the data for the currently installed theme is picked up properly when uploading a theme update on Windows.

Follow-up to [48390].

Props bobbingwide, wpamitkumar, mukesh27.
Merges [48913] to the 5.5 branch.
Fixes #51182.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48919 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 18:28:54 +00:00
Jonathan Desrosiers
d5e894c20c Comments: Check if reply heading text node exists before accessing its property in comment-reply.js.
Follow-up to [47506], [48876].

Props johannadevos, mailnew2ster.
Merges [48904] to the 5.5 branch.
Fixes #38009.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48917 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 18:12:11 +00:00
Jonathan Desrosiers
56fef3742a Docs: Clarify the usage of null for auto_update_{$type} filter.
The value is internally used to detect whether nothing has hooked into this filter.

Props audrasjb, pbiron, johnbillion, SergeyBiryukov.
Merges [48909] to the 5.5 branch.
Fixes #50848.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48916 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 18:00:12 +00:00
Jonathan Desrosiers
58d649aa51 Docs: Add a @since note to the display_post_states filter to clarify that it is now also applied in the Customizer context.
If any admin functions are used within the filter, their existence should be checked with `function_exists()` before being used.

Follow-up to [47763], [48620].

Props audrasjb, garrett-eclipse, Howdy_McGee, dlh, khag7, SergeyBiryukov.
Merges [48910] to the 5.5 branch.
Fixes #51081.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48915 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 17:55:24 +00:00
Jonathan Desrosiers
28022ebac7 Tests: Reset the $wp_sitemap global after each test, so that sitemaps are re-initialized when the next test runs.
This ensures consistent results in query var tests, regardless of whether they are run in isolation or as part of a larger group of tests.

Props pbiron, peterwilsoncc.
Merges [48908] to the 5.5 branch.
Fixes #51154.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48914 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-31 17:51:23 +00:00
Jonathan Desrosiers
06b142aa62 Post WordPress 5.5.1 RC1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48902 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 23:22:10 +00:00
Jonathan Desrosiers
bff2404fd2 WordPress 5.5.1 RC1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48901 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 23:04:57 +00:00
Sergey Biryukov
adda1360aa Upgrade/Install: Only display the auto-update links on the Network Admin > Themes screen for themes that support the feature.
Follow-up to [48669], [48688].

Props afragen, pbiron, audrasjb, desrosj, SergeyBiryukov.
Merges [48899] to the 5.5 branch.
Fixes #51129.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48900 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 22:23:53 +00:00
Sergey Biryukov
bf21b6507b Script Loader: Disable concatenation for scripts with translations to ensure they are printed in the right order.
Props herregroen, ocean90, desrosj, mikeyarce, bobbingwide, audrasjb, johnbillion.
Merges [48897] to the 5.5 branch.
Fixes #50999.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48898 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 21:59:17 +00:00
Sergey Biryukov
d60dc322f3 Bootstrap/Load: Remove the ability to alter the list of environment types in wp_get_environment_type().
The intention of `wp_get_environment_type()` is to provide a consistent means of identifying the environment type, not of identifying a specific environment.

Actual environments should fit within one of the existing types: `local`, `development`, `staging`, or `production`. That should cover the types that plugins and themes might be concerned about when toggling functionality. 

Props johnbillion, joostdevalk, TimothyBlynJacobs, jeremyfelt, batmoo, claytoncollie, Clorith, markjaquith, garrett-eclipse, GaryJ, elrae.
Merges [48894] and [48895] to the 5.5 branch.
Fixes #50992.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48896 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 21:44:10 +00:00
Sergey Biryukov
b16bfc45f6 Tests: Update wp_add_inline_script() unit tests to account for the jquery handle being an alias for jquery-core again.
Follow-up to [48323], [48324], [48890].

Props davidbaumwald, audrasjb.
Merges [48892] to the 5.5 branch.
See #50919.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48893 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 21:06:13 +00:00
Sergey Biryukov
52cef7aeec Script Loader: Change the jquery handle back to an alias for jquery-core.
This ensures that `wp_localize_script( 'jquery', ... )` continues to work as expected, since `WP_Scripts::localize()` rewrites the `jquery` handle to `jquery-core` internally.

Follow-up to [48323].

Props mukesh27, rajeshsingh520, johnbillion, TimothyBlynJacobs, TobiasBg.
Merges [48890] to the 5.5 branch.
Fixes #50919.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48891 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 20:34:18 +00:00
Jonathan Desrosiers
db992211f2 Upgrade/Install: Pass details about the specific plugin and theme updates attempted to filters.
This adds an additional parameter to the `auto_plugin_update_send_email` and `auto_theme_update_send_email` filters to provide the additional context of which updates were attempted and their outcome. This will help plugin and theme auto-update emails to be better tailored to a site owner's liking.

Props audrasjb, Paddy Landau, desrosj.
Merges [48888] to the 5.5 branch.
Fixes #50988.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48889 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 19:32:31 +00:00
Jonathan Desrosiers
bb6615aa8a Build/Test Tools: Update the package lock file.
Follow up to [48884].

Merges [48886] to the 5.5 branch.
See #51151.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48887 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 19:05:55 +00:00
Jorge Costa
0c1b1e132a Editor: update packages.
The following package versions were changed:
@wordpress/block-directory: 1.13.6 -> 1.13.7
@wordpress/block-editor: 4.3.6 -> 4.3.7
@wordpress/block-library: 2.22.6 -> 2.22.7
@wordpress/components: 10.0.5 -> 10.0.6
@wordpress/edit-post: 3.21.6 -> 3.21.7
@wordpress/editor: 9.20.6 -> 9.20.7
@wordpress/format-library: 1.22.6 -> 1.22.7
@wordpress/list-reusable-blocks: 1.21.5 -> 1.21.6
@wordpress/nux: 3.20.5 -> 3.20.6
@wordpress/server-side-render: 1.16.5 -> 1.16.6
Includes PR WordPress/gutenberg#24828

Props nosolosw, desrosj, SergeyBiryukov, youknowriad.
Merges [48884] to the 5.5 branch.
Fixes: #51151.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48885 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 17:58:02 +00:00
Sergey Biryukov
61b9a7fd6e REST API: Fix multi-type schemas with integer fields.
In [48306] support for multi-typed schemas was improved to first detect the data type of the value before applying further validation. The `integer` data type was detected using the new `rest_is_integer` function. This function used logic, however, that assumed that the value had already passed an `is_numeric` check. This meant that if `integer` and `string` were both acceptable types, the value would always be considered an `integer` causing the later accurate type validation to fail.

This commit fixes the `rest_is_integer` logic to include an `is_numeric` check.

Props rtagliento, TimothyBlynJacobs.
Merges [48881] to the 5.5 branch.
Fixes #51146.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48883 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 14:43:40 +00:00
Sergey Biryukov
d67396c24b Taxonomy: Make sure wp_terms_checklist() and Walker_Category_Checklist::start_el() properly handle an array of strings as selected_cats or popular_cats values.
Even with these values documented as an array of integers, they can technically also accept an array of strings, e.g. as form results.

Add a unit test.

Props brianhogg, TimothyBlynJacobs, SergeyBiryukov.
Merges [48880] to the 5.5 branch.
Fixes #51137.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48882 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 03:06:22 +00:00
Sergey Biryukov
1699ff7f13 Tests: Update one more test to account for lazy-loading being disabled for custom logos by default.
Follow-up to [48870], [48874].

Props desrosj.
Merges [48878] to the 5.5 branch.
See #50933.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48879 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 02:03:23 +00:00
Sergey Biryukov
cac33d2984 Comments: Correct the check for reply element existence in comment-reply.js.
`document.getElementById()` returns `null` if no matching element was found, so the previous comparison didn't work as expected.

Follow-up to [47506].

Props mailnew2ster, sarahricker.
Merges [48876] to the 5.5 branch.
Fixes #38009.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48877 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 01:59:29 +00:00
Sergey Biryukov
8cab089517 Tests: Update unit tests to account for lazy-loading being disabled for custom logos by default.
Follow-up to [48870].

Merges [48874] to the 5.5 branch.
See #50933.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48875 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 01:56:05 +00:00
Peter Wilson
686262686d Sitemaps: Prevent incorrect redirection of paged sitemap requests.
Update `redirect_canonical()` to account for custom pagination and URL format used by sitemaps in order to follow standard practices.

Introduce the function `get_sitemap_url()` to simplify getting the index and provider URLs as needed.

Props jonathanstegall, pbiron, GamerZ, salvoaranzulla, peterwilsoncc.
Merges [48872] to the 5.5 branch.
Fixes #50910.



git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48873 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 01:35:31 +00:00
Jonathan Desrosiers
f14250e2a7 Media: Disable lazy-loading for custom logos by default.
Custom site logos are most commonly displayed above the fold, so lazy-loading is unnecessary.

Props demetris, khag7, johnbillion, rebasaurus, audrasjb.
Merges [48870] to the 5.5 branch.
Fixes #50933.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48871 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-27 01:08:23 +00:00
Sergey Biryukov
4636ab5143 Upgrade/Install: Make the check for empty home option in __get_option() more resilient.
This addresses a regression in [47808], where the `home` check expected an empty string to use `siteurl` as a fallback, but `wpdb::get_var()` returns `null` if the option is empty.

Props fjarrett.
Merges [48868] to the 5.5 branch.
Fixes #51011.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48869 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-26 17:05:54 +00:00
Sergey Biryukov
1a982564f1 Quick/Bulk Edit: Revert [48134] to address the bottom "Bulk actions" dropdown not functioning properly on Posts and Users list tables.
A better solution for the original issue will be explored in a future release.

Props audrasjb, garrett-eclipse, webzunft, Krstarica, chunkysteveo, SergeyBiryukov.
Merges [48866] to the 5.5 branch.
Fixes #50882, #50998. See #46872.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48867 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-26 14:19:01 +00:00
Sergey Biryukov
61f45b5db6 Editor: Remove some hardcoded text color values from patterns that have body text with no specific background color.
This ensures that the patterns respect the theme's default color for body text and avoids contrast issues, particularly in dark themes.

Props nrqsnchz, mapk, fullofcaffeine.
Merges [48864] to the 5.5 branch.
Fixes #50892.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48865 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-26 13:34:32 +00:00
Sergey Biryukov
09cf17d0b7 Administration: Remove non-color related styling from Modern color scheme.
Color schemes should only affect colors, to avoid diverging from a consistent and predictable layout, especially if core CSS rules subsequently change.

Follow-up to [48277], [48286], [48345].

Props Joen, johnbillion, afercia, johnjamesjacoby.
Merges [48862] to the 5.5 branch.
Fixes #51127. See #50504.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48863 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-26 13:19:09 +00:00
Sergey Biryukov
6f51272e51 Editor: Make some hardcoded strings in block patterns translatable.
Follow-up to [48726].

Props justinahinon, audrasjb, nabilmoqbel, tobifjellner, yoavf, ramiy.
Merges [48859] to the 5.5 branch.
Fixes #50845.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48860 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-25 12:40:21 +00:00
Sergey Biryukov
0dd560ac3f Bootstrap/Load: Add local environment type to wp_get_environment_type().
This gives developers a better control over their existing development workflow and ensures that `local` is not the exact same as `development` if it does not need to be.

Props claytoncollie, johnbillion, jeremyfelt, kreppar, dushakov, TimothyBlynJacobs, Ipstenu, khag7, knutsp, Clorith, markjaquith, joostdevalk, SergeyBiryukov.
Merges [48856] to the 5.5 branch.
Fixes #51064.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48857 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-24 22:32:20 +00:00
Sergey Biryukov
ae49fc0a3b Docs: Add documentation and a @since note about the loading attribute added to wp_get_attachment_image().
Follow-up to [48272].

Props audrasjb.
Merges [48852] and [48853] to the 5.5 branch.
Fixes #51122.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48854 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-24 22:12:06 +00:00
Sergey Biryukov
e393d41e3c Administration: Don't print the .php-error class in the admin header for PHP notices in wp-config.php.
Any notices in that file happen before `WP_DEBUG` takes effect, and should not be displayed with the `error_reporting` level previously set in `wp-load.php`.

Adding the class when there is no notice displayed results in extra padding under the admin bar, which should be avoided.

Follow-up to [20102], [21025], [26620], [47745].

Props akissz, tw2113, laxman-prajapati, sabernhardt, johnbillion, SergeyBiryukov.
Merges [48850] to the 5.5 branch.
Fixes #51073.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48851 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-24 10:48:24 +00:00
Sergey Biryukov
4ad67eb3c2 REST API: In WP_REST_Block_Directory_Controller::get_items(), make sure the blocks data for a plugin is not empty before proceeding.
This avoids a PHP notice if the API returns a plugin with empty data for `blocks` key.

Props khag7, TwentyZeroTwo, justinahinon, TimothyBlynJacobs, dd32, SergeyBiryukov.
Merges [48842] to the 5.5 branch.
Fixes #51018.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48849 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-24 10:33:09 +00:00
Sergey Biryukov
4e7ac9bb9f Docs: Update documentation for get_custom_logo() and the_custom_logo() to mention the unlink-homepage-logo theme feature.
Follow-up to [48039], [48283], [48749], [48757], [48758].

Props sabernhardt.
Merges [48832] to the 5.5 branch.
Fixes #51075.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48833 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-20 10:40:40 +00:00
Sergey Biryukov
acc404eaf8 Docs: Add a @since note to register_rest_route() about the _doing_it_wrong() notice when the required permission_callback argument is not set.
Follow-up to [48526].

Props psykro.
Merges [48827] to the 5.5 branch.
Fixes #51060.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48828 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-19 12:31:23 +00:00
Sergey Biryukov
5b338a892f Plugins: Avoid a PHP notice if the update-supported key in plugin data is not set.
Props sanzeeb3.
Merges [48820] to the 5.5 branch.
Fixes #51052.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48821 602fd350-edb4-49c9-b593-d223f7449a82
2020-08-18 20:38:21 +00:00