Sergey Biryukov
3b7a8a7eca
Twenty Nineteen: Remove extra space from the comment link in `TwentyNineteen_Walker_Comment`.
...
Fixes #51533 .
Built from https://develop.svn.wordpress.org/trunk@49159
git-svn-id: http://core.svn.wordpress.org/trunk@48921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 15:24:08 +00:00
Sergey Biryukov
2d6ec60e04
Twenty Twenty: Remove extra space from the comment link in `TwentyTwenty_Walker_Comment`.
...
See #51533 .
Built from https://develop.svn.wordpress.org/trunk@49158
git-svn-id: http://core.svn.wordpress.org/trunk@48920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 15:13:07 +00:00
Sergey Biryukov
c7d43b7f57
Comments: Remove extra space from the comment link in `Walker_Comment`.
...
Props poena, mukesh27, SergeyBiryukov.
See #51533 .
Built from https://develop.svn.wordpress.org/trunk@49157
git-svn-id: http://core.svn.wordpress.org/trunk@48919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 15:07:09 +00:00
TimothyBlynJacobs
a91cc19c1c
REST API: Exclude custom site health capability check on multisite.
...
Super admins will always pass capability checks.
Follow up to [49154], [49155].
See #48105 .
Built from https://develop.svn.wordpress.org/trunk@49156
git-svn-id: http://core.svn.wordpress.org/trunk@48918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 02:28:05 +00:00
TimothyBlynJacobs
1ec225ee3f
REST API: Grant super admin to site health test user.
...
The current user needs to be a super admin to access Site Health on multisite.
Follow up to [49154].
See #48105 .
Built from https://develop.svn.wordpress.org/trunk@49155
git-svn-id: http://core.svn.wordpress.org/trunk@48917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 02:13:04 +00:00
TimothyBlynJacobs
039ce3f16f
Site Health, REST API: Move async tests to REST API endpoints.
...
This provides more flexibility when writing tests and benefits from running in a front-end context which is necessary for some tests like checking that updates are supported. Additionally, this provides a more robust interface for developers who want to integrate with Site Health tests.
Because the `wp/v2` endpoint is reserved for modeling core entities, site health is registered in its own `wp-site-health/v1` namespace.
The existing ajax actions have been maintained for backward compatibility.
Props Clorith, chrisvanpatten, afragen, pokhriyal, TimothyBlynJacobs.
Fixes #48105 .
Built from https://develop.svn.wordpress.org/trunk@49154
git-svn-id: http://core.svn.wordpress.org/trunk@48916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 02:00:08 +00:00
Sergey Biryukov
22c86907c4
Docs: Improve description of the `$email` parameter in `email_exists()`.
...
Follow-up to [49148].
Props garrett-eclipse.
See #51379 .
Built from https://develop.svn.wordpress.org/trunk@49153
git-svn-id: http://core.svn.wordpress.org/trunk@48915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 00:16:08 +00:00
iandunn
8d2beacd45
Community Events: Update timezone-related `@since` tags to `5.5.2`.
...
r49145 and r49146 were originally planned for 5.6 when they were committed, but are now planned for 5.5.2.
See #51130 .
Built from https://develop.svn.wordpress.org/trunk@49152
git-svn-id: http://core.svn.wordpress.org/trunk@48914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 21:35:05 +00:00
Dominik Schilling
c6f7e0f155
I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/dashboard.js`.
...
* Deprecate the `l10n` property on `communityEventsData`.
* Introduce `version` parameter for `deprecateL10nObject` and backfill the version for deprecated objects in 5.5.0.
* Add a noop version of `deprecateL10nObject` for QUnit testing.
Fixes #51498 .
Built from https://develop.svn.wordpress.org/trunk@49151
git-svn-id: http://core.svn.wordpress.org/trunk@48913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 21:13:08 +00:00
Helen Hou-Sandí
8ce5e19a65
Updates: Reduce secondary buttons for less visual complexity.
...
Props audrasjb, karmatosed.
Fixes #51523 .
Built from https://develop.svn.wordpress.org/trunk@49150
git-svn-id: http://core.svn.wordpress.org/trunk@48912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 20:27:09 +00:00
Helen Hou-Sandí
0e4d84b105
Admin Menu: Better wrapping for long menu item names.
...
Props munyagu, jagirbaheshwp, harshbarach, pratikkry, hareesh-pillai, naveenkharwar, mukesh27, chetan200891, dushanthi, worldweb, audrasjb, afercia, amolv, iqbalbary, davidbaumwald, sabernhardt, johnjamesjacoby, garrett-eclipse, garrett-eclipse.
Fixes #42201 .
Built from https://develop.svn.wordpress.org/trunk@49149
git-svn-id: http://core.svn.wordpress.org/trunk@48911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 19:53:08 +00:00
Sergey Biryukov
118b9aea4d
Users: Introduce `email_exists` filter, to complement `username_exists`.
...
Props garrett-eclipse, apermo, mukesh27, Mista-Flo, sebastian.pisula, mikelopez.
Fixes #51379 . See #35509 .
Built from https://develop.svn.wordpress.org/trunk@49148
git-svn-id: http://core.svn.wordpress.org/trunk@48910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 19:04:08 +00:00
iandunn
bb67dde689
Community Events: Apply coding standards.
...
The previous commits intentionally didn't include these, because it would have added an unreasonable amount of diff noise.
See #51130
Built from https://develop.svn.wordpress.org/trunk@49147
git-svn-id: http://core.svn.wordpress.org/trunk@48909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 18:23:04 +00:00
iandunn
5bf0005827
Community Events: Display dates and times in the user's time zone.
...
Fixes #51130
Props sippis, hlashbrooke, audrasjb, Rarst, iandunn
Built from https://develop.svn.wordpress.org/trunk@49146
git-svn-id: http://core.svn.wordpress.org/trunk@48908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 18:21:06 +00:00
iandunn
5d42748c18
Community Events: Trim events by Unix timestamp for accuracy.
...
The `date` and `end_date` fields are ''WP'' timestamps representing the venue's local time. As of meta:changeset:10270 (#meta4480), new `start_unix_timestamp` and `end_unix_timestamp` values are available, providing a proper ''Unix'' timestamp in the UTC timezone. Using those is more precise, and removes the time window where the event has expired but still appears in the Events Widget.
To simplify the function, it now only accepts and returns the events themselves, rather than the entire response body.
See #51130
See #meta4480
Related: https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/
Built from https://develop.svn.wordpress.org/trunk@49145
git-svn-id: http://core.svn.wordpress.org/trunk@48907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 18:19:10 +00:00
Sergey Biryukov
542d13830b
General: Move `wp_array_get()` next to `wp_array_slice_assoc()`, for a bit more consistent placement.
...
Follow-up to [49135], [49143].
See #51461 .
Built from https://develop.svn.wordpress.org/trunk@49144
git-svn-id: http://core.svn.wordpress.org/trunk@48906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 02:16:08 +00:00
Sergey Biryukov
620c069fe8
General: Move `wp_array_get()` from a separate file to `wp-includes/functions.php`, for consistency.
...
Add missing `@since` tag, adjust the DocBlock per the documentation standards.
Follow-up to [49135].
Props isabel_brison, ocean90.
Fixes #51461 .
Built from https://develop.svn.wordpress.org/trunk@49143
git-svn-id: http://core.svn.wordpress.org/trunk@48905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 02:10:04 +00:00
Sergey Biryukov
a706c4505e
Administration: Make sure list table row actions in Extended view stay visible when a single row gets focus.
...
Follow-up to [48398], [48423], [48424], [48450], [48670].
Props ryelle.
Fixes #51516 . See #49715 .
Built from https://develop.svn.wordpress.org/trunk@49142
git-svn-id: http://core.svn.wordpress.org/trunk@48904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 02:02:06 +00:00
Peter Wilson
fa5a6c8622
Taxonomy: Improve performance of term recounting database queries.
...
When modifying terms assigned to an object, replace full term recounts with incrementing/decrementing the count as appropriate. This provides a significant performance boost on sites with a high number of term/object relationships and/or posts.
Introduces the functions `wp_increment_term_count()`, `wp_decrement_term_count()`, `wp_modify_term_count_by()` and `wp_modify_term_count_by_now()` for updating the term count.
Introduces the function `_wp_prevent_term_counting()` for preventing double counting on posts that are about to transition.
Adds the parameter `update_count_by_callback` to `register_taxonomy()` to allow developers to use a custom callback for incrementing or decrementing a term count.
Props boonebgorges, davidbaumwald, hellofromTonya, johnbillion, lcyh78, mattoperry, peterwilsoncc, rebasaurus, whyisjake.
Fixes #40351 .
Built from https://develop.svn.wordpress.org/trunk@49141
git-svn-id: http://core.svn.wordpress.org/trunk@48903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 00:51:06 +00:00
Sergey Biryukov
8859aea3e2
Tests: Correct the message in a sitemaps test for getting a URL list for a custom taxonomy that is not publicly queryable.
...
Follow-up to [48474].
See #51344 , #50607 .
Built from https://develop.svn.wordpress.org/trunk@49140
git-svn-id: http://core.svn.wordpress.org/trunk@48902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-14 00:27:07 +00:00
Dominik Schilling
4dfe5ecfe1
Users: Enable Application Passwords for local development environments, even if HTTPS is not available.
...
This will make testing the new feature easier since the local development environment is only accessible via HTTP by default.
Also update docs to link to the relevant filters.
See #42790 .
Fixes #51503 .
Built from https://develop.svn.wordpress.org/trunk@49139
git-svn-id: http://core.svn.wordpress.org/trunk@48901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-13 20:10:04 +00:00
Dominik Schilling
7137daec42
Administration: Restore alternative admin menu position for menu items with the same position value as an existing menu item.
...
Reverts parts of [49108].
Props johnjamesjacoby.
Fixes #42918 .
Built from https://develop.svn.wordpress.org/trunk@49138
git-svn-id: http://core.svn.wordpress.org/trunk@48900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-13 19:59:08 +00:00
Sergey Biryukov
6fe59c4bdc
Sitemaps: Check the result of `get_term_link()` when collecting the URLs in `WP_Sitemaps_Taxonomies::get_url_list()`.
...
This avoids a PHP warning during sitemap generation if `get_term_link()` returns an error, e.g. due to term ID being shared between multiple taxonomies.
Additionally, pass the `$taxonomy` argument to `get_term_link()` to properly disambiguate the call.
Props dd32.
Fixes #51416 .
Built from https://develop.svn.wordpress.org/trunk@49137
git-svn-id: http://core.svn.wordpress.org/trunk@48899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-13 15:04:07 +00:00
Sergey Biryukov
1ef20f8638
External Libraries: Upgrade PHPMailer to version 6.1.8.
...
For a full list of changes in this update, see the PHPMailer GitHub:
https://github.com/PHPMailer/PHPMailer/compare/v6.1.7...v6.1.8
Props ayeshrajans.
Fixes #51502 .
Built from https://develop.svn.wordpress.org/trunk@49136
git-svn-id: http://core.svn.wordpress.org/trunk@48898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-13 14:00:10 +00:00
jorgefilipecosta
b667105f60
Editor: update packages; Port block supports to WordPress core.
...
The following package versions were changed:
@wordpress/a11y: 2.11.0 -> 2.13.0
@wordpress/annotations: 1.20.4 -> 1.22.0
@wordpress/api-fetch: 3.18.0 -> 3.20.0
@wordpress/autop: 2.9.0 -> 2.10.0
@wordpress/blob: 2.9.0 -> 2.10.0
@wordpress/block-directory: 1.13.7 -> 1.16.0
@wordpress/block-editor: 4.3.7 -> 5.0.0
@wordpress/block-library: 2.22.7 -> 2.25.0
@wordpress/block-serialization-default-parser: 3.7.0 -> 3.8.0
@wordpress/blocks: 6.20.3 -> 6.23.0
@wordpress/components: 10.0.6 -> 11.0.0
@wordpress/compose: 3.19.3 -> 3.21.0
@wordpress/core-data: 2.20.3 -> 2.23.0
@wordpress/data: 4.22.3 -> 4.24.0
@wordpress/data-controls: 1.16.3 -> 1.18.0
@wordpress/date: 3.10.0 -> 3.12.0
@wordpress/deprecated: 2.9.0 -> 2.10.0
@wordpress/dom: 2.13.1 -> 2.15.0
@wordpress/dom-ready: 2.10.0 -> 2.11.0
@wordpress/e2e-test-utils: 4.11.2 -> 4.14.0
@wordpress/edit-post: 3.21.7 -> 3.24.0
@wordpress/editor: 9.20.7 -> 9.23.0
@wordpress/element: 2.16.0 -> 2.18.0
@wordpress/escape-html: 1.9.0 -> 1.10.0
@wordpress/format-library: 1.22.7 -> 1.24.0
@wordpress/hooks: 2.9.0 -> 2.10.0
@wordpress/html-entities: 2.8.0 -> 2.9.0
@wordpress/i18n: 3.14.0 -> 3.16.0
@wordpress/icons: 2.4.0 -> 2.7.0
@wordpress/is-shallow-equal: 2.1.0 -> 2.3.0
@wordpress/keyboard-shortcuts: 1.9.3 -> 1.11.0
@wordpress/keycodes: 2.14.0 -> 2.16.0
@wordpress/library-export-default-webpack-plugin: 1.7.0 -> 1.9.0
@wordpress/list-reusable-blocks: 1.21.6 -> 1.23.0
@wordpress/media-utils: 1.15.0 -> 1.17.0
@wordpress/notices: 2.8.3 -> 2.10.0
@wordpress/nux: 3.20.6 -> 3.22.0
@wordpress/plugins: 2.20.3 -> 2.22.0
@wordpress/primitives: 1.7.0 -> 1.9.0
@wordpress/priority-queue: 1.7.0 -> 1.9.0
@wordpress/redux-routine: 3.10.0 -> 3.12.0
@wordpress/rich-text: 3.20.4 -> 3.22.0
@wordpress/scripts: 12.1.1 -> 12.3.0
@wordpress/server-side-render: 1.16.6 -> 1.18.0
@wordpress/shortcode: 2.9.0 -> 2.11.0
@wordpress/token-list: 1.11.0 -> 1.13.0
@wordpress/url: 2.17.0 -> 2.19.0
@wordpress/viewport: 2.21.3 -> 2.23.0
@wordpress/warning: 1.2.0 -> 1.3.0
@wordpress/wordcount: 2.10.0 -> 2.12.0
Props isabel_brison, youknowriad, mcsf.
Fixes #51461 .
Built from https://develop.svn.wordpress.org/trunk@49135
git-svn-id: http://core.svn.wordpress.org/trunk@48897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-13 13:10:30 +00:00
Andrew Ozz
2c5953e876
Add `svn:eol-style native` to new files.
...
See #50564 .
Built from https://develop.svn.wordpress.org/trunk@49134
git-svn-id: http://core.svn.wordpress.org/trunk@48896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-13 09:20:06 +00:00
TimothyBlynJacobs
ba5b09af09
REST API: Add HTTP/1.0 emulation to wp.apiRequest().
...
This allows for making REST API calls with the PUT and DELETE HTTP methods that may be blocked or unsupported by some server configurations.
Props yakimun.
Fixes #43605 .
Built from https://develop.svn.wordpress.org/trunk@49133
git-svn-id: http://core.svn.wordpress.org/trunk@48895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-12 20:11:06 +00:00
TimothyBlynJacobs
49a399db05
REST API: Introduce search post format handler.
...
This allows for clients to search the used post formats via the /wp/v2/search endpoint by using a type=post-format query parameter.
Fixes #51459 .
Props andraganescu, zieladam, noisysocks, TimothyBlynJacobs.
Built from https://develop.svn.wordpress.org/trunk@49132
git-svn-id: http://core.svn.wordpress.org/trunk@48894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-12 19:54:05 +00:00
Sergey Biryukov
e36a4a7db9
Rewrite Rules: Add missing newline to the `HTTP_AUTHORIZATION` rewrite rule.
...
Follow-up to [49109].
Props nendeb55, georgestephanis, johnbillion.
Fixes #51495 . See #42790 .
Built from https://develop.svn.wordpress.org/trunk@49131
git-svn-id: http://core.svn.wordpress.org/trunk@48893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-12 19:10:07 +00:00
Sergey Biryukov
69217eb85b
Docs: Correct comments in `wpmu_new_site_admin_notification()` per the documentation standards.
...
See #42134 .
Built from https://develop.svn.wordpress.org/trunk@49130
git-svn-id: http://core.svn.wordpress.org/trunk@48892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-12 15:47:11 +00:00
jorgefilipecosta
1c7ebdab9f
Add wp-packages-update command to update WordPress packages.
...
This ticket exposes the packages-update script implemented at https://github.com/WordPress/gutenberg/pull/19448 on WordPress core.
By running "npm run wp-packages-update" all the WordPress packages are updated to the latest version. The command is very useful when updating the Gutenberg editor core exposes.
Props isabel_brison.
Fixes #51491 .
Built from https://develop.svn.wordpress.org/trunk@49129
git-svn-id: http://core.svn.wordpress.org/trunk@48891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-12 12:01:09 +00:00
John Blackbourn
33070fb7d2
Media: Allow the `gallery_shortcode()` and `get_image_tag()` functions to correctly accept an array of image dimensions.
...
These functions did previously accept an array of image dimensions but their class attributes were not properly constructed.
Fixes #51362
Built from https://develop.svn.wordpress.org/trunk@49128
git-svn-id: http://core.svn.wordpress.org/trunk@48890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-11 20:01:06 +00:00
John Blackbourn
e11accb411
Networks and Sites: Extract into a new function the email that gets sent to the network administrator when a new site is created, and introduce filters to disable and modify its
...
contents.
* The `send_new_site_email` filter can be used to disable this email.
* The `new_site_email` filter can be used to modify its contents.
Props Dhruvin, Dharm1025, dharmin16, jipmoors
Fixes #42134
Built from https://develop.svn.wordpress.org/trunk@49127
git-svn-id: http://core.svn.wordpress.org/trunk@48889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-11 19:29:08 +00:00
Sergey Biryukov
8d945f4811
Tests: Use `assertSame()` in `test_edit_user_blank_password()`, for consistency with other assertions.
...
Follow-up to [49118].
See #42766 , #38266 .
Built from https://develop.svn.wordpress.org/trunk@49126
git-svn-id: http://core.svn.wordpress.org/trunk@48888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-11 15:51:06 +00:00
John Blackbourn
bd1fa2d998
Posts, Post Types: Switch to restoring posts to `draft` status by default when they are untrashed.
...
This allows for edits to be made to a restored post before it goes live again. This also prevents scheduled posts being published unexpectedly if they are untrashed after their originally scheduled date.
The old behaviour of restoring untrashed posts to their original status can be reinstated using the `wp_untrash_post_set_previous_status()` helper function.
Also fixes an issue where the incorrect post ID gets passed to hooks if no post ID is passed to the function.
Props harrym, bananastalktome, jaredcobb, chriscct7, melchoyce, johnbillion, pankajmohale
Fixes #23022
Built from https://develop.svn.wordpress.org/trunk@49125
git-svn-id: http://core.svn.wordpress.org/trunk@48887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-11 13:39:07 +00:00
Sergey Biryukov
9bfc867e66
Docs: Correct comments in `test_wp_add_dashboard_widget()` per the documentation standards.
...
See #42791 .
Built from https://develop.svn.wordpress.org/trunk@49124
git-svn-id: http://core.svn.wordpress.org/trunk@48886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-11 02:37:07 +00:00
John Blackbourn
da04189357
Administration: Allow context and priority to be specified when adding dashboard widgets.
...
Props davidjlaietta, soulseekah, johnbillion
Fixes #42791
Built from https://develop.svn.wordpress.org/trunk@49123
git-svn-id: http://core.svn.wordpress.org/trunk@48885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 20:40:05 +00:00
John Blackbourn
cdd8b2cbfa
Site Health: Remove an unused function that was erroneously added when the site health feature was introduced.
...
This function was and is never used as the `is_in_debug_mode` check is a direct one.
Fixes #50282
Built from https://develop.svn.wordpress.org/trunk@49122
git-svn-id: http://core.svn.wordpress.org/trunk@48884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 20:24:03 +00:00
John Blackbourn
a7fafb3a1b
Build/Test Tools: Set the local development environment to a `local` environment type by default.
...
Props igorradovanov, TimothyBlynJacobs
Fixes #50903
See #33161
Built from https://develop.svn.wordpress.org/trunk@49121
git-svn-id: http://core.svn.wordpress.org/trunk@48883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 20:15:04 +00:00
John Blackbourn
905460bd5e
Docs: Standardise the type name for booleans and integers.
...
This brings these docs inline with the documentation standards.
Props ravipatel, justinahinon
Fixes #51426
Built from https://develop.svn.wordpress.org/trunk@49120
git-svn-id: http://core.svn.wordpress.org/trunk@48882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 20:02:05 +00:00
John Blackbourn
6b7ba33d68
Docs: Fix the types for some properties and parameters that use the generic `object` type.
...
See #50768
Built from https://develop.svn.wordpress.org/trunk@49119
git-svn-id: http://core.svn.wordpress.org/trunk@48881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 19:14:04 +00:00
Adam Silverstein
e3d280ffd8
Users: prevent saving empty passwords, trim space from password ends on save.
...
Fix an issue where users could save a password with only spaces, or spaces at the beginning or end of their password, preventing them from logging in.
Props ronakganatra, 1naveengiri, ajensen, oolleegg55, bookdude13, nrqsnchz, aristath.
Fixes #42766 .
Built from https://develop.svn.wordpress.org/trunk@49118
git-svn-id: http://core.svn.wordpress.org/trunk@48880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 16:51:07 +00:00
Sergey Biryukov
3e10f5a7e8
Tests: Update third-party video URLs in unit tests with more permanent videos.
...
This brings some consistency to the YouTube and Vimeo URLs used for tests:
* For YouTube, use the video of WordPress 5.0 release.
* For Vimeo, use one of the official test videos.
Props garrett-eclipse, dd32.
Fixes #51487 . See #meta5467.
Built from https://develop.svn.wordpress.org/trunk@49117
git-svn-id: http://core.svn.wordpress.org/trunk@48879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-10 01:39:11 +00:00
John Blackbourn
c1401d7009
General: Docblock improvements for the `WP_Error` class.
...
Props garrett-eclipse
See #38777
Built from https://develop.svn.wordpress.org/trunk@49116
git-svn-id: http://core.svn.wordpress.org/trunk@48878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 22:30:04 +00:00
John Blackbourn
543b14ed0a
General: Introduce the ability to merge multiple `WP_Error` objects into one another, and to store more than one item of data for an error.
...
This allows multiple errors to be instantiated independently but collected into one without having to manually combine their properties.
Props rmccue, dlh, TimothyBlynJacobs
Fixes #38777
Built from https://develop.svn.wordpress.org/trunk@49115
git-svn-id: http://core.svn.wordpress.org/trunk@48877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 22:22:05 +00:00
iandunn
92dacfafaf
Dashboard: Show `2` w.org news items to preserve clustered posts.
...
These days there are often 2 posts published close to each other, like a release announcement and a Month In WordPress post. When that happens, the earlier post is often pushed out of the widget before many people have had a chance to see it.
Ideally, the number of total items would remain at `4`, to reduce visual clutter. Implementing a conditional item would require a significant refactor, though. Increasing the total number of items to `5` is a practical compromise.
Props hlashbrooke, tellyworth.
Fixes #43441 .
Built from https://develop.svn.wordpress.org/trunk@49114
git-svn-id: http://core.svn.wordpress.org/trunk@48876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 16:07:07 +00:00
Sergey Biryukov
c628344422
Accessibility: Widgets: Add a "Cancel" link when editing a widget in accessibility mode.
...
This allows the user to go back without saving any changes to the widget.
Props garrett-eclipse, audrasjb, afercia.
Fixes #49354 .
Built from https://develop.svn.wordpress.org/trunk@49113
git-svn-id: http://core.svn.wordpress.org/trunk@48875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 15:53:08 +00:00
Sergey Biryukov
7a622f6ffd
Tests: Use consistent wording for the `$position` parameter in `add_submenu_page()` tests.
...
This replaces the instances of `$priority` with `$position`, to match the actual parameter name and avoid confusion.
Follow-up to [46197].
See #51344 , #39776 .
Built from https://develop.svn.wordpress.org/trunk@49112
git-svn-id: http://core.svn.wordpress.org/trunk@48874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 13:29:06 +00:00
Sergey Biryukov
4419f9b889
Docs: Correct description for `wp_set_comment_status` hook.
...
The action fires immediately after transitioning a comment's status from one to another in the database and removing the comment from the object cache, but prior to all status transition hooks.
Props davidbaumwald, henry.wright.
Fixes #51481 .
Built from https://develop.svn.wordpress.org/trunk@49111
git-svn-id: http://core.svn.wordpress.org/trunk@48873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 01:28:04 +00:00
Sergey Biryukov
5affd982a0
I18N: Add missing placeholders in some translator comments.
...
Follow-up to [49109].
See #42790 .
Built from https://develop.svn.wordpress.org/trunk@49110
git-svn-id: http://core.svn.wordpress.org/trunk@48872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-09 01:06:03 +00:00