Sergey Biryukov
b052bca67e
Shortcodes: Revert [46369] for now to allow more time to investigate and prepare for backward compatibility changes.
...
Also reverts follow-up changes in [46370] and [46465].
See #47863 .
Built from https://develop.svn.wordpress.org/trunk@46554
git-svn-id: http://core.svn.wordpress.org/trunk@46351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 19:36:02 +00:00
Andrew Ozz
f7968ccb92
Media: Similarly to wp_get_original_image_path()
add wp_get_original_image_url()
to always retrieve the URL to the original uploaded image.
...
Props kraftbj.
Fixes #48302 .
Built from https://develop.svn.wordpress.org/trunk@46553
git-svn-id: http://core.svn.wordpress.org/trunk@46350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 19:12:02 +00:00
Sergey Biryukov
93e28555ae
Build/Test Tools: Move PHP 7.4 to the top of the list for consistency.
...
See #48232 .
Built from https://develop.svn.wordpress.org/trunk@46552
git-svn-id: http://core.svn.wordpress.org/trunk@46349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 18:53:02 +00:00
desrosj
908961974e
Bundled Themes: Update Twenty Twenty.
...
This brings `trunk`’s version of Twenty Twenty in-sync with GitHub.
For a complete list of changes since [46445], see 7246fd6...bc89c51
.
Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, netweb, joyously, mahesh901122, josephscott, byalextran, amolv, Clorith.
See #48110 .
Built from https://develop.svn.wordpress.org/trunk@46551
git-svn-id: http://core.svn.wordpress.org/trunk@46348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 18:47:02 +00:00
Andrea Fercia
02810533c4
Accessibility: Script Loader: Remove jQuery as dependency of admin-bar
after [46440].
...
A better approach needs to be explored, as there are valid concerns for potential conflicts between different jQuery versions added by themes or plugins.
See #47069 .
Built from https://develop.svn.wordpress.org/trunk@46550
git-svn-id: http://core.svn.wordpress.org/trunk@46347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 17:23:04 +00:00
Andrea Fercia
d5bfc553b9
Accessibility: Media: Improve the Media Modal spinner position after [46418].
...
Fixes #47138 .
Built from https://develop.svn.wordpress.org/trunk@46549
git-svn-id: http://core.svn.wordpress.org/trunk@46346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 16:47:02 +00:00
Sergey Biryukov
71e8fedf6c
Customize: Ensure that WP_Customize_Manager::import_theme_starter_content()
properly handles starter content with (nested) arrays as values.
...
Previously, searching for symbol references to replace with post or attachment IDs in array values resulted in a PHP warning.
Props timph, JarretC, SergeyBiryukov.
Fixes #45484 .
Built from https://develop.svn.wordpress.org/trunk@46548
git-svn-id: http://core.svn.wordpress.org/trunk@46345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 16:43:01 +00:00
Aaron Jorbin
52dee3c19b
Build/Test: Remove PHP 7.4 from allowed failures
...
PHP7.4 is supported in WordPress 5.3. 🐘 🎉
Fixes : #48232 .
Built from https://develop.svn.wordpress.org/trunk@46547
git-svn-id: http://core.svn.wordpress.org/trunk@46344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 16:38:03 +00:00
jorgefilipecosta
16571b1bfb
Block Editor: Update the WordPress Packages to the ones used in the Gutenberg 6.8 release.
...
Updated packages:
@wordpress/a11y@2.5.1
@wordpress/annotations@1.7.2
@wordpress/api-fetch@3.6.2
@wordpress/autop@2.5.1
@wordpress/babel-preset-default@4.6.2
@wordpress/blob@2.5.1
@wordpress/block-directory@1.0.2
@wordpress/block-editor@3.2.2
@wordpress/block-library@2.9.2
@wordpress/block-serialization-default-parser@3.4.1
@wordpress/block-serialization-spec-parser@3.3.1
@wordpress/blocks@6.7.2
@wordpress/components@8.3.2
@wordpress/compose@3.7.2
@wordpress/core-data@2.7.2
@wordpress/data-controls@1.3.2
@wordpress/data@4.9.2
@wordpress/deprecated@2.6.1
@wordpress/dom-ready@2.5.1
@wordpress/dom@2.5.2
@wordpress/e2e-test-utils@2.4.2
@wordpress/e2e-tests@1.7.2
@wordpress/edit-post@3.8.2
@wordpress/editor@9.7.2
@wordpress/element@2.8.2
@wordpress/escape-html@1.5.1
@wordpress/format-library@1.9.2
@wordpress/is-shallow-equal@1.6.1
@wordpress/keycodes@2.6.2
@wordpress/list-reusable-blocks@1.8.2
@wordpress/media-utils@1.2.2
@wordpress/notices@1.8.2
@wordpress/nux@3.7.2
@wordpress/plugins@2.7.2
@wordpress/priority-queue@1.3.1
@wordpress/redux-routine@3.6.2
@wordpress/rich-text@3.7.2
@wordpress/scripts@5.1.0
@wordpress/server-side-render@1.3.2
@wordpress/url@2.8.1
@wordpress/viewport@2.8.2
@wordpress/wordcount@2.6.2
Props gziolo, youknowriad.
Fixes : #48310
Built from https://develop.svn.wordpress.org/trunk@46546
git-svn-id: http://core.svn.wordpress.org/trunk@46343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 16:17:12 +00:00
whyisjake
6c3a387d77
REST API: Allow for multiple Vary: Origin headers in GET responses.
...
Simple fix, we pass `false` as the second parameter to the header function.
This is something that we added downstream of the 5.2.4 release, but we missed in 5.2/trunk.
Fixes #48309 .
Props xknown, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@46544
git-svn-id: http://core.svn.wordpress.org/trunk@46341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 15:47:03 +00:00
gziolo
aca0d9968f
Block Editor: Remove experimental Social Links blocks
...
We decided to mark Social Links block as an experimental feature in Gutenberg. In effect, we are moving all related code from WordPress 5.3 release.
Props youknowriad.
Fixes #48263 .
Built from https://develop.svn.wordpress.org/trunk@46543
git-svn-id: http://core.svn.wordpress.org/trunk@46340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 15:37:08 +00:00
Aaron Jorbin
1740246d2b
Build/Test tools use Trunk revision 2170172 of importer
...
Update Travis configuration to temporarily use trunk for the importer in order for PHP 7.4 tests to pass. When the new version is released, this will be updated to point to that tag.
See: #48231
Built from https://develop.svn.wordpress.org/trunk@46542
git-svn-id: http://core.svn.wordpress.org/trunk@46339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 14:42:04 +00:00
Andrew Ozz
1940cf7d54
Media: Do not store error messages in the image meta. The initial idea was to (be able to) display these errors in the UI but it wasn't implemented as these errors are mostly helpful for low-level bedugging.
...
Fixes #40439 .
Built from https://develop.svn.wordpress.org/trunk@46507
git-svn-id: http://core.svn.wordpress.org/trunk@46304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 20:05:01 +00:00
Andrew Ozz
49686be2ab
Uploads: Retry to post-process images after HTTP 500 and HTTP 502 errors.
...
Props mikeschroder, azaozz.
Fixes #47872 .
Built from https://develop.svn.wordpress.org/trunk@46506
git-svn-id: http://core.svn.wordpress.org/trunk@46303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 19:56:06 +00:00
Andrea Fercia
135bebc55b
Accessibility: Media: Improve the text of the Media Modal actions toggle button displayed in the responsive view.
...
See #47149 .
Built from https://develop.svn.wordpress.org/trunk@46489
git-svn-id: http://core.svn.wordpress.org/trunk@46287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 18:03:04 +00:00
Andrea Fercia
c1d4bf2080
Accessibility: Media: Improve the new Media Modal headings text.
...
See #47610 .
Built from https://develop.svn.wordpress.org/trunk@46488
git-svn-id: http://core.svn.wordpress.org/trunk@46286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 17:58:04 +00:00
whyisjake
72130f11d0
Administration: Ensure that admin referer nonce is valid.
...
Fix for a testing regression.
Props desrosj.
Built from https://develop.svn.wordpress.org/trunk@46485
git-svn-id: http://core.svn.wordpress.org/trunk@46283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 17:15:06 +00:00
whyisjake
89468bfb89
REST API: Ensure that we don't generate warnings from sending extra headers after headers have been sent.
...
Fixes issues stemming from [46478].
Built from https://develop.svn.wordpress.org/trunk@46483
git-svn-id: http://core.svn.wordpress.org/trunk@46281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 16:25:04 +00:00
whyisjake
b224c251ad
REST API: Send a Vary: Origin header on GET requests.
...
Add this header on all GET requests to prevent cached requests.
Props darthhexx, davidbinda, nickdaugherty, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@46478
git-svn-id: http://core.svn.wordpress.org/trunk@46276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 15:43:04 +00:00
whyisjake
b183fd1cca
Administration: Ensure that admin referer nonce is valid.
...
Coding standards, ensure that nonce is valid with identical, rather then equal operator.
Props vortfu, xknown, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@46477
git-svn-id: http://core.svn.wordpress.org/trunk@46275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 15:40:04 +00:00
whyisjake
2524ba3aec
Filesystem API: Prevent directory travelersals when creating new folders.
...
Reject file paths that contain sub-directory paths.
Props iandunn, xknown, sstoqnov, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@46476
git-svn-id: http://core.svn.wordpress.org/trunk@46274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 15:31:04 +00:00
whyisjake
608d39faed
HTTP API: Protect against hex interpretation.
...
Return earlier from wp_http_validate_url().
Props: iandunn, xknown, voldemortensen, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@46475
git-svn-id: http://core.svn.wordpress.org/trunk@46273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 15:27:04 +00:00
whyisjake
946ec8492f
Query: Remove the static query property.
...
Prevent unauthenticated views of publicly queryables content types.
Props aaroncampbell, whyisjake, nickdaugherty, xknown.
Built from https://develop.svn.wordpress.org/trunk@46474
git-svn-id: http://core.svn.wordpress.org/trunk@46272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 15:20:03 +00:00
Sergey Biryukov
9db44754b9
Formatting: In wp_validate_redirect()
, normalize the path when validating the location for relative URLs, to account for Windows paths.
...
Props peterwilsoncc, rconde, jmmathc, mat-lipe, Sixes, justinahinon, cmagrin, daxelrod, SergeyBiryukov.
Fixes #47980 .
Built from https://develop.svn.wordpress.org/trunk@46472
git-svn-id: http://core.svn.wordpress.org/trunk@46270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-14 10:52:04 +00:00
Sergey Biryukov
e8fcc3fbe7
Docs: Fix typo in a comment in WP_REST_Settings_Controller::prepare_value()
.
...
Convert the comment to a multi-line format per the documentation standards.
Props itowhid06.
See #48296 .
Built from https://develop.svn.wordpress.org/trunk@46471
git-svn-id: http://core.svn.wordpress.org/trunk@46269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-13 10:02:04 +00:00
Peter Wilson
5d6cd13597
Docs: Correct documentation typo in print_emoji_detection_script().
...
Props itowhid06.
Fixes #48298 . See #47110 .
Built from https://develop.svn.wordpress.org/trunk@46470
git-svn-id: http://core.svn.wordpress.org/trunk@46268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-13 02:48:01 +00:00
Peter Wilson
8730eb34e3
Docs: Correct comment typo in WP_REST_Terms_Controller::update_item().
...
Props manikmist09.
Fixes #48295 . See #47110 .
Built from https://develop.svn.wordpress.org/trunk@46469
git-svn-id: http://core.svn.wordpress.org/trunk@46267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-13 02:42:01 +00:00
John Blackbourn
41d6b80d03
Docs: Fix and improve inline documentation for the HTTP API.
...
See #47110
Built from https://develop.svn.wordpress.org/trunk@46468
git-svn-id: http://core.svn.wordpress.org/trunk@46266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-12 18:05:04 +00:00
Sergey Biryukov
634242343c
Users: Make sure wp_logout()
clears current user, so that a subsequent call to is_user_logged_in()
works as expected.
...
Props sebastian.pisula, donmhico, roytanck, juliobox.
Fixes #35488 .
Built from https://develop.svn.wordpress.org/trunk@46467
git-svn-id: http://core.svn.wordpress.org/trunk@46265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-12 03:10:03 +00:00
Sergey Biryukov
4ca89cecbd
Tests: Rename tests methods in tests/pluggable.php
per the handbook's naming convention.
...
See #47632 .
Built from https://develop.svn.wordpress.org/trunk@46466
git-svn-id: http://core.svn.wordpress.org/trunk@46264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-12 03:02:03 +00:00
Sergey Biryukov
cf1c5e1b54
Docs: Adjust @since
note in shortcode_parse_atts()
for consistency with similar notes.
...
See #47863 .
Built from https://develop.svn.wordpress.org/trunk@46465
git-svn-id: http://core.svn.wordpress.org/trunk@46263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-12 02:50:03 +00:00
Sergey Biryukov
b0e0f69b2e
I18N: Don't capitalize "Extension" in update_core()
, for consistency with other strings.
...
Follow-up to [46455].
See #47699 .
Built from https://develop.svn.wordpress.org/trunk@46464
git-svn-id: http://core.svn.wordpress.org/trunk@46262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-12 02:42:01 +00:00
Sergey Biryukov
e19329bad0
Docs: Add requires_php
to the list of fields returned by plugins_api()
.
...
Props ediamin.
Fixes #48291 .
Built from https://develop.svn.wordpress.org/trunk@46463
git-svn-id: http://core.svn.wordpress.org/trunk@46261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-12 02:35:04 +00:00
Sergey Biryukov
b78a40aa4c
Formatting: Make sure wp_sanitize_redirect()
encodes spaces in URLs instead of stripping them out.
...
Props donmhico, hlashbrooke, dd32, azaozz.
Fixes #36998 .
Built from https://develop.svn.wordpress.org/trunk@46462
git-svn-id: http://core.svn.wordpress.org/trunk@46260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-11 23:54:03 +00:00
antpb
97356bbd75
Media: Adds Edit Image controller to Media Library select
frame.
...
This adds the necessary state for `EditImage` views in the `select` frame and listeners for setting that view.
Props fblaser, w3rkjana, afercia, antpb.
See #48028 .
Built from https://develop.svn.wordpress.org/trunk@46461
git-svn-id: http://core.svn.wordpress.org/trunk@46259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-11 20:43:03 +00:00
antpb
ebd52ce048
Administration: Prevents horizontal scroll jumping around while admin menu is open.
...
This sets the `#adminmenuback` `position` CSS property to `fixed`.
Props promz, man4toman.
Fixes #47010 .
Built from https://develop.svn.wordpress.org/trunk@46460
git-svn-id: http://core.svn.wordpress.org/trunk@46258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-11 19:22:02 +00:00
Mike Schroder
66c8085fc4
Media: Update fallback previews to support _wp_make_subsizes()
...
Allows fallback previews (PDF by default, in core) to save image meta
after each size is generated to allow for resuming, and make sizes
immediately available.
Props azaozz, antpb, progremzion, mikeschroder.
See #48111 .
Built from https://develop.svn.wordpress.org/trunk@46459
git-svn-id: http://core.svn.wordpress.org/trunk@46257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-11 07:54:03 +00:00
Aaron Jorbin
742537ac3d
Cron: Prevent sending headers when using ALTERNATE_WP_CRON
...
ALTERNATE_WP_CRON echos things which causes a "Headers already sent" warning. This adds a check to ensure headers haven't already been sent.
Previously: [45560]
See: #45560 . Fixes #48283 .
Props dlh.
Built from https://develop.svn.wordpress.org/trunk@46458
git-svn-id: http://core.svn.wordpress.org/trunk@46256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-10 22:52:03 +00:00
Dominik Schilling
c621d4fb3f
Themes: Convert core-provided starter content to block content.
...
Props Clorith.
Fixes #48130 .
Built from https://develop.svn.wordpress.org/trunk@46457
git-svn-id: http://core.svn.wordpress.org/trunk@46255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-10 19:07:05 +00:00
K. Adam White
1a8aba96e7
REST API: Fix error in _fields filtering logic where only one of several requested sibling properties would be included.
...
Props kadamwhite, TimothyBlynJacobs.
Fixes #48266 .
Built from https://develop.svn.wordpress.org/trunk@46456
git-svn-id: http://core.svn.wordpress.org/trunk@46254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-10 17:18:03 +00:00
desrosj
c6d3987b08
Upgrade/Install: Detect the presence of the native PHP JSON extension before updating.
...
The PHP native JSON extension has been bundled and compiled with PHP by default since version 5.2.0. Because the minimum version of PHP required by WordPress is now 5.6.20 (see #46594 and [45058]), the related polyfills and workarounds have been removed (see [46205-46206,46208]).
However, even though the JSON extension is now included in PHP by default, it is still possible to disable the extension in a custom configuration. This change will prevent sites from upgrading if the JSON extension is disabled to prevent compatibility issues.
Props jrf, jorbin, dd32, desrosj.
Fixes #47699 .
Built from https://develop.svn.wordpress.org/trunk@46455
git-svn-id: http://core.svn.wordpress.org/trunk@46253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-09 22:22:04 +00:00
K. Adam White
55560a708f
REST API: Do not addslash when receiving meta arrays of non-string values.
...
Slashing non-string data caused PUT requests containing unmodified meta arrays of integers to fail the check against the existing stored meta value, causing a 500 when posting an unmodified response body back to the server.
Props TimothyBlynJacobs, augustuswm.
Fixes #48264 .
Built from https://develop.svn.wordpress.org/trunk@46454
git-svn-id: http://core.svn.wordpress.org/trunk@46252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-09 17:36:01 +00:00
whyisjake
ec02d199f4
Administration: Ensure visual consistency with large titles in the sidebar.
...
Custom posts, and other menu titles that are long aren't wrapping correctly.
Props jagirbaheshwp, munyagu, harshbarach, hareesh-pillai, pratikkry, naveenkharwar, mukesh27, dushanthi, worldweb, audrasjb, afercia, amolv, iqbalbary, davidbaumwald.
Fixes #42201
Built from https://develop.svn.wordpress.org/trunk@46453
git-svn-id: http://core.svn.wordpress.org/trunk@46251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-09 04:58:02 +00:00
Sergey Biryukov
13eecfc861
Docs: Tweak the @since
note in Walker::walk()
and ::paged_walk()
for better readability and consistency with other notes.
...
See #47678 .
Built from https://develop.svn.wordpress.org/trunk@46452
git-svn-id: http://core.svn.wordpress.org/trunk@46250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-09 04:35:01 +00:00
Sergey Biryukov
8d1e51e9c7
Docs: Add a @since
note about new parameters with the spread operator added to function signatures.
...
Props jrf.
See #47678 .
Built from https://develop.svn.wordpress.org/trunk@46451
git-svn-id: http://core.svn.wordpress.org/trunk@46249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-09 04:28:02 +00:00
desrosj
6a38614ffe
Bundled Themes: Update/audit NPM dependencies for Twenty Nineteen.
...
Also, ignore the `node_modules` folder for Twenty Nineteen.
Fixes #48262 .
Built from https://develop.svn.wordpress.org/trunk@46450
git-svn-id: http://core.svn.wordpress.org/trunk@46248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-08 22:19:02 +00:00
Adam Silverstein
376c13f07c
Post WordPress 5.3 Beta 3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@46449
git-svn-id: http://core.svn.wordpress.org/trunk@46247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-08 20:47:02 +00:00
Adam Silverstein
0820f95896
WordPress 5.3 Beta 3.
...
Built from https://develop.svn.wordpress.org/trunk@46448
git-svn-id: http://core.svn.wordpress.org/trunk@46246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-08 19:59:03 +00:00
Dominik Schilling
0b67a91c1c
Bundled Themes: Fix JSHint error in [46445]
...
Props ianbelanger.
See #48110 .
Built from https://develop.svn.wordpress.org/trunk@46447
git-svn-id: http://core.svn.wordpress.org/trunk@46245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-08 19:52:03 +00:00
desrosj
faaf3be0b1
Bundled Themes: Change the eol-style
property to native
for Twenty Twenty files.
...
Props aazaozz, desrosj.
See #48110 .
Built from https://develop.svn.wordpress.org/trunk@46446
git-svn-id: http://core.svn.wordpress.org/trunk@46244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-08 19:21:02 +00:00