Commit Graph

42349 Commits

Author SHA1 Message Date
Sergey Biryukov 69d6206926 Tag 5.5.3
git-svn-id: https://develop.svn.wordpress.org/tags/5.5.3@49463 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-30 20:37:00 +00:00
Sergey Biryukov fd0927688a WordPress 5.5.3.
Props audrasjb.
Fixes #51684.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49458 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-30 19:30:38 +00:00
Jake Spurlock c9f38db45b Upgrade/Install: During the install process, add additional checking for exising tables.
This commit brings the changes in [49452] to the 5.5 branch.

If reinstalling WordPress, there is a condition where tables would exist in the database. Ensures that when that is the case, the install process can carry along without issue.

Fixes #51676.

Props xknown, garubi, mukesh27, desrosj, johnbillion, metalandcoffee, davidbaumwald, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49453 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-30 17:54:48 +00:00
Sergey Biryukov 902584148e Post WordPress 5.5.2 version bump. The 5.5 branch is now 5.5.3 alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49449 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 20:54:11 +00:00
Jonathan Desrosiers 9ff2f12519 WordPress 5.5.2.
Props audrasjb.
Fixes #51649.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49447 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 20:00:58 +00:00
Robert Anderson 126da5c874 Editor: Update packages
@wordpress/block-directory: 1.13.8 -> 1.13.9
@wordpress/block-editor: 4.3.8 -> 4.3.9
@wordpress/block-library: 2.22.8 -> 2.22.9
@wordpress/edit-post: 3.21.8 -> 3.21.9
@wordpress/edit-site: 1.11.8 -> 1.11.9
@wordpress/editor: 9.20.8 -> 9.20.9
@wordpress/format-library: 1.22.8 -> 1.22.9

See #51659.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49446 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 19:58:12 +00:00
Jake Spurlock 0b0669ade2 XML-RPC: Improve error messages for unprivileged users.
Add specific permission checks to avoid ambiguous failure messages.

This brings the changes in [49380] to the 5.5 branch.

Props zieladam, peterwilsoncc, xknown, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49389 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 18:26:20 +00:00
Jake Spurlock 7d5bf1c3f8 Coding Standards: Use a strict comparison operator when comparing values.
Props batmoo, mukesh27.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49381 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 17:44:59 +00:00
Jake Spurlock 69e8323982 Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.
Props xknown, zieladam, peterwilsoncc, whyisjake


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49379 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 17:33:43 +00:00
Jake Spurlock 9ece9cf045 Meta: Sanitize meta key before checking protection status.
Props zieladam, peterwilsoncc, xknown, whyisjake.



git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49378 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 17:31:40 +00:00
Jake Spurlock 59414965b5 Upgrade/install: Improve logic check when determining installation status.
Improve handling of ambiguous return values to determine if a blog is installed.

Props zieladam, xknown.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49377 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 17:24:33 +00:00
Jake Spurlock 2d677cd4b2 XML-RPC: Return error message if attachment ID is incorrect.
Throw an error for incorrect attachment IDs when requesting a media object to ensure return signature is correct and doesn't include incorrectly typed values within the object.

Props zieladam, peterwilsoncc, whyisjake.
See #49905.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49376 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 16:57:43 +00:00
Jake Spurlock 002f56a3da Coding standards: Modify escaping functions to avoid potential false positives.
Props xknown, zieladam, peterwilsoncc.Y



git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49375 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 16:56:34 +00:00
Jake Spurlock e2142c20be Embeds: Disable embeds on deactivated Multisite sites.
Props xknown, whyisjake, zieladam, peterwilsoncc.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49374 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 16:52:48 +00:00
Jake Spurlock f854286f9c External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
Props xknown, peterwilsoncc, desrosj, dd32, whyisjake.



git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49373 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 16:36:19 +00:00
Robert Anderson 59168bc0e2 Editor: Update packages
@wordpress/block-directory: 1.13.7 -> 1.13.8
@wordpress/block-editor: 4.3.7 -> 4.3.8
@wordpress/block-library: 2.22.7 -> 2.22.8
@wordpress/blocks: 6.20.3 -> 6.20.4
@wordpress/components: 10.0.6 -> 10.0.7
@wordpress/core-data: 2.20.3 -> 2.20.4
@wordpress/edit-post: 3.21.7 -> 3.21.8
@wordpress/editor: 9.20.7 -> 9.20.8
@wordpress/format-library: 1.22.7 -> 1.22.8
@wordpress/icons: 2.4.0 -> 2.4.1
@wordpress/list-reusable-blocks: 1.21.6 -> 1.21.7
@wordpress/nux: 3.20.6 -> 3.20.7
@wordpress/plugins: 2.20.3 -> 2.20.4
@wordpress/server-side-render: 1.16.6 -> 1.16.7

Props talldanwp.
See #51659, #51053, #50949.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49372 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-29 06:11:57 +00:00
Jonathan Desrosiers 61b04b99e1 Build/Test Tools: Allow the desired version of PHPUnit to be passed to the local Docker environment.
This introduces the `LOCAL_PHPUNIT` environment variable, which allows the desired version of PHPUnit to be specified when running the PHP tests within the local Docker environment.

Because support for newer versions of PHPUnit is not backported, some versions of PHP need the ability to run multiple versions of PHPUnit for different branches. This adds the flexibility needed to use the Docker environment within those older branches to run the PHP tests.

Props johnbillion, SergeyBiryukov.
Merges [49362] to the 5.5 branch.
See #50042.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49363 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-28 23:32:16 +00:00
Jake Spurlock 6828266965 Embeds: Remove Facebook and Instagram as an oEmbed Source
Facebook has depracated all non-authenticated endpoints for Facebook and Instagram.

This commit brings the changes from [49359] to the 5.5 branch.

See: https://developers.facebook.com/docs/plugins/oembed-legacy
See also: https://make.wordpress.org/core/2020/09/22/facebook-and-instagram-embeds-to-be-deprecated-october-24th/

With this change, endpoints are being removed. If a site is dependent on this feature, they need to pass either an app or client token. There are a few plugins that add this functionality.

Fixes #50861.
Props johnbillion, joyously, mkaz, dimadin, ayeshrajans, davisshaver, paaljoachim, Clorith, bridgetwillard, jb510, sippis, Clorith, TimothyBlynJacobs, desrosj, smub, audrasjb, whyisjake.


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49361 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-28 21:21:37 +00:00
Sergey Biryukov 24dea5b0d5 General: Ensure that filtered arguments in `get_search_form()` contain all required default values.
Props kellybleck, davidbaumwald, whyisjake, SergeyBiryukov.
Merges [49355] to the 5.5 branch.
Fixes #51645.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49356 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-28 17:07:18 +00:00
Jonathan Desrosiers 729a6af8ee Build/Test Tools: Specify a type when using `wp config set`.
This prevents an error if constants are not predefined when running the Docker install script while using older combinations of WordPress/PHP/WP-CLI.

Backports [49335] to the 5.5 branch.
See #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49340 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 19:01:53 +00:00
Jonathan Desrosiers b92337f04d Build/Test Tools: Set the local development environment to a local environment type by default.
Props igorradovanov, TimothyBlynJacobs, johnbillion.
Merges [49121] to the 5.5 branch.
See #50903.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49339 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 18:58:02 +00:00
Sergey Biryukov 7ba72fec4c Posts, Post Types: Check if taxonomy is set for the `tax_input` parameter of `wp_insert_post()`.
This avoids a PHP notice when creating a post with multiple taxonomies both having a default term.

Props yakimun, szaqal21, hareesh-pillai, audrasjb.
Merges [49328] to the 5.5 branch.
Fixes #51320.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49332 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-27 17:54:43 +00:00
Sergey Biryukov 2f6e70f6d8 Build Tools: Update mergeinfo for [49313].
See #51624.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49315 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-26 22:56:06 +00:00
Sergey Biryukov 94feb3d0da Build Tools: Fix running installing Composer dependencies using Composer 2.0.
This updates the `dealerdirect/phpcodesniffer-composer-installer` package to allow installing version `0.7.0` which supports Composer 2.0.

Props itowhid06, jrf.
Merges [49306] to the 5.5 branch.
See #51624.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49313 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-26 22:46:00 +00:00
Sergey Biryukov cdd98893d7 Tests: Declare UTF-8 encoding for QUnit test suite.
This was done for trunk in [49101] as part of other changes, and is now backported to the 5.5 branch.

Follow-up to [49275].

Props iandunn, SergeyBiryukov.
Fixes #51130.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49307 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-25 01:29:32 +00:00
Tellyworth c8683c8412 Community Events: Display dates and times in the user's time zone.
Fixes #51130
Merges [49145], [49146], [49147], [49152], and [49201] to the 5.5 branch.
Props sippis, hlashbrooke, audrasjb, Rarst, iandunn


git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49275 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-22 04:03:25 +00:00
Peter Wilson 81b8d747d2 XML-RPC: Fix length validation of anonymous commenter's email address.
Fix the first step of validating an anonymous commenters in which the length is checked prior to running regular expressions.

Follow up to [47808].
Merges [49271] to the 5.5 branch.
Fixes #51595.



git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49273 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-22 02:45:47 +00:00
Sergey Biryukov 97ebbdab72 Comments: Hide the link to the initial parent comment in the reply heading when replying to another comment.
This ensures that the reply heading is updated correctly on single post URLs with the `?replytocom` query argument.

Follow-up to [47506], [48876], [48904].

Props mailnew2ster, wpamitkumar, audrasjb, desrosj, SergeyBiryukov.
Merges [49187] to the 5.5 branch.
Fixes #51175.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49191 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-18 17:09:46 +00:00
Sergey Biryukov 042bfaed29 Upgrade/Install: Check if plugin or theme update results are available before applying the notification filters.
This avoids a PHP notice for an undefined index of either `plugin` or `theme` in the `auto_{plugin|theme}_update_send_email` filter hook.

Props afragen, audrasjb.
Merges [49166] to the 5.5 branch.
Fixes #51400.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@49167 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-15 23:29:17 +00:00
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