38303 Commits

Author SHA1 Message Date
Anton Timmermans
404dabf1f8 Build tools: Combine webpack config files.
This prepares us for building the Gutenberg packages.

See #45065.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43687 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 08:30:09 +00:00
Aaron Jorbin
d2c93a4e64 Build/Test Tools: Revert grunt-contrib-uglify update
Follow up to [43684].
See #45064.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43686 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 04:43:30 +00:00
Aaron Jorbin
f24452eb46 Build/Test: Use same grunt-qunit as trunk for 5.0
See [43684].
See #45064.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43685 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 03:25:21 +00:00
Aaron Jorbin
bb3dc305dd Build/Test: Update dependencies for 5.0
Updates package dependencies to more modern versions, also adds .nvmrc and package-lock.json as followups to [43683] and [43571].

See #44600.
Fixes #45064.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43684 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 02:51:32 +00:00
Aaron Jorbin
72f676a754 Build/Test: Remove npm-shrinkwrap.json
Shrinkwraping is done to keep dependencies the same. Historically, WordPress Core has done it after a release. As the 5.0 branch was created from the 4.9.8 tag which was created from the 4.9 branch, it included it. The 5.0 branch will have some dependency updates so this shrinkwrap is not needed here.

See #45064.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43683 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 02:08:52 +00:00
Daniel Bachhuber
d3488487cd REST API: Declare unfiltered_html capability in links.
Because user capabilities can be modified at runtime, the REST API needs to expose them in some evaluated but declarative manner for clients to interpret. JSON Hyper Schema `targetSchema` provides an appropriate paradigm for doing so.

Props timothyblynjacobs.
Fixes #45014.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43682 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-08 22:44:05 +00:00
Daniel Bachhuber
9dd758a32d REST API: Persist attributes for attachment links
In [43437], the link definition implementation caused attachment links to be unexpectedly nested under an `attributes` key. This changeset restores the prior behavior.

Props TimothyBlynJacobs.
Fixes #44750.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43681 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-08 18:18:25 +00:00
Daniel Bachhuber
ccf66142cc REST API: Define taxonomy visibility settings in schema
For Gutenberg and other admin-type interfaces, it's
useful to be able to see the visibility settings for
taxonomies.

The original changeset was partially included in [43445].

Merges [42729], [42730], [42973] to the 5.0 branch.
Props joehoyle, TimothyBlynJacobs, pento.
Fixes #42707


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43680 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-08 13:49:51 +00:00
Gary Pendergast
5655a9acbf Bump the 5.0 branch package.json version to 5.0.0.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43679 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-05 20:43:28 +00:00
Gary Pendergast
8ba02e0390 Bump 5.0 branch version to 5.0-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43676 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-05 20:17:28 +00:00
Gary Pendergast
4464ae8826 Branch 5.0 from 4.9.8
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43675 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-05 20:13:34 +00:00
Dominik Schilling (ocean90)
5d477aa706 Tag 4.9.8
git-svn-id: https://develop.svn.wordpress.org/tags/4.9.8@43553 602fd350-edb4-49c9-b593-d223f7449a82
4.9.8
2018-08-02 21:32:41 +00:00
Dominik Schilling (ocean90)
6bd37cef4d Bump 4.9 branch to version 4.9.8.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43552 602fd350-edb4-49c9-b593-d223f7449a82
2018-08-02 20:12:09 +00:00
Sergey Biryukov
d0c5d33f7d Twenty Seventeen: Bump version number and update changelog for 4.9.8 release.
Props pbiron, laurelfulford.
Merges [43541] and [43550] to the 4.9 branch.
Fixes #44646.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43551 602fd350-edb4-49c9-b593-d223f7449a82
2018-08-02 16:42:18 +00:00
Aaron D. Campbell
86d2f52a04 Post WordPress 4.9.8 RC 3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43547 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-31 20:25:35 +00:00
Aaron D. Campbell
f4b5cf668e WordPress 4.9.8 RC 3.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43546 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-31 20:05:54 +00:00
Aaron Jorbin
6887768ca1 Gutenberg: Restrict "Try Gutenberg" based on capability and gutenstatus
When Gutenberg is either not installed, or not activated, only show the callout to users with the `install_plugins` capability.
When Gutenberg is activated, expand that to include all users with the `edit_posts` capability.

4.9 branch commit.

Props pento.
Fixes #44680.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43544 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-31 14:51:33 +00:00
Aaron D. Campbell
6daa32bb6a Post WordPress 4.9.8 RC 2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43539 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-26 22:55:29 +00:00
Aaron D. Campbell
140e33d824 WordPress 4.9.8 RC 2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43538 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-26 22:39:43 +00:00
Sergey Biryukov
d76cec5bb0 Dashboard: Tweak the "Try Gutenberg" callout:
* Introduce `try_gutenberg_learn_more_link` filter that allows hosts or site owners to change the link, to provide extra information about Gutenberg, specific to their service.
* Only display the "Install" buttons if we're able to directly write to disk to install the plugins.
* Make sure the "Dismiss" link works correctly.

Props pento, andrew.taylor, leemon.
Fixes #41316.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43537 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-26 15:05:40 +00:00
Gary Pendergast
ae1b5b3ee2 Dashboard: Tweak the "Try Gutenberg" subheading line height.
Props pento, pbiron, afercia, SergeyBiryukov.
Fixes #44627.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43536 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-26 03:53:24 +00:00
Aaron D. Campbell
2ac2cbaafa Post WordPress 4.9.8 RC 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43534 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 19:46:32 +00:00
Aaron D. Campbell
b67cd00fe5 WordPress 4.9.8 RC 1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43533 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 18:50:32 +00:00
Sergey Biryukov
8880871b78 Privacy: Revert [43525].
The commenter cookies checkbox is not legally required, so should be disabled by default.

Merges [43531] to the 4.9 branch.
Fixes #44373.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43532 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 17:07:19 +00:00
Sergey Biryukov
f147a718ab REST API: Ensure attachments created with WP_REST_Attachments_Controller::create_item() on Windows have a relative path.
Props ocean90, SergeyBiryukov, redcastor.
Merges [43529] to the 4.9 branch.
Fixes #40861.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43530 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 16:53:17 +00:00
Sergey Biryukov
054714aff3 I18N: Separate two "About" strings with different context.
Props desrosj, XpertOne, Nao.
Merges [43527] to the 4.9 branch.
Fixes #44139.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43528 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 15:05:42 +00:00
Sergey Biryukov
ed6fe25890 Privacy: Remove the setting to enable comment cookies consent added in [43469].
This needs some more work to ensure expected behaviour.

Merges [43525] to the 4.9 branch.
See #44373.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43526 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 12:52:29 +00:00
Sergey Biryukov
f1e98d9609 Comments: Ensure that themes overriding default comment_form() fields still display the cookies consent checkbox.
The `comment_form_default_fields` filter can be used to remove the checkbox.

Props pross, SergeyBiryukov.
Merges [43518] to the 4.9 branch.
Fixes #44126.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43524 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 12:42:33 +00:00
Gary Pendergast
3e2ca8c151 Dashboard: Improve "Try Gutenberg" subheading appearance for long headings.
When translated, the callout subheadings can wrap onto a new line, which caused them to overlap the paragraph text.

Props earnjam, fierevere.
Fixes #44611.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43523 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 03:04:03 +00:00
Gary Pendergast
34376b5df7 Dashboard: Make some of the "Try Gutenberg" links translatable.
Some of the links in the "Try Gutenberg" callout go to wordpress.org, so would potentially be better served by localised site.

Props dimadin.
See #41316.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43522 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-24 02:51:28 +00:00
Aaron D. Campbell
a98c41139e Post WordPress 4.9.8 Beta 2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43516 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-19 20:47:22 +00:00
Aaron D. Campbell
7f7280eebc WordPress 4.9.8 Beta 2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43515 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-19 20:24:04 +00:00
Sergey Biryukov
54842bc4e3 Privacy: Improve grammar on Privacy Settings screen.
Props ianbelanger, garrett-eclipse.
Merges [43513] to the 4.9 branch.
Fixes #44612.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43514 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-19 20:15:06 +00:00
K. Adam White
343e8d4ea3 REST API: Support meta registration for specific object subtypes.
Introduce an object_subtype argument to the args array for register_meta() which can be used to limit meta registration to a single subtype (e.g. a custom post type or taxonomy, vs all posts or taxonomies).

Introduce register_post_meta() and register_term_meta() wrapper methods for register_meta to provide a convenient interface for the common case of registering meta for a specific taxonomy or post type. These methods work the way plugin developers have often expected register_meta to function, and should be used in place of direct register_meta where possible.

Props flixos90, tharsheblows, spacedmonkey.

Merges [43378] to the 4.9 branch.
Fixes #38323.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43510 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-19 18:48:52 +00:00
Sergey Biryukov
6426368f14 Privacy: Use a consistent case for "Privacy Policy page" on Privacy Settings screen.
Props XpertOne, idea15, garrett-eclipse.
Merges [43508] to the 4.9 branch.
Fixes #44130.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43509 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-19 12:16:47 +00:00
Sergey Biryukov
9c35dcd477 Privacy: Use the actual Privacy Policy page title in get_the_privacy_policy_link().
Props desrosj, birgire, ianbelanger, Ov3rfly.
Merges [43506] to the 4.9 branch.
Fixes #44192.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43507 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-18 11:51:06 +00:00
Sergey Biryukov
8e0b78fadf I18N: Update list of continents and cities for the timezone selection.
Props soulseekah, dyrer.
Merges [43504] to the 4.9 branch.
Fixes #44574.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43505 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-18 11:26:17 +00:00
Gary Pendergast
e86f3b6dd1 Dashboard: Introduce the "Try Gutenberg" callout.
To encourage folks to prepare for Gutenberg, this new Dashboard box allows site users to easily install and try the Gutenberg plugin now, or to install the Classic Editor plugin before WordPress 5.0 is released.

Props pento, melchoyce, joen, karmatosed, joemcgill, SergeyBiryukov, jorbin, bph, Clorith, afercia, chanthaboune, chrislema, kjellr, matveb, michelleweber.
Fixes #41316.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43502 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-18 06:41:07 +00:00
Sergey Biryukov
2080421de2 Privacy: Add unit tests for _wp_privacy_send_request_confirmation_notification(), introduced in [43211].
Props birgire, desrosj, garrett-eclipse.
Merges [43499] to the 4.9 branch.
Fixes #43967.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43500 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 23:02:14 +00:00
Aaron D. Campbell
1d5520c9de Post WordPress 4.9.8 Beta 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43498 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 19:40:06 +00:00
Aaron D. Campbell
75bbe64fa0 WordPress 4.9.8 Beta 1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43497 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 19:27:04 +00:00
Sergey Biryukov
e2278c8588 Privacy: Mark Privacy Policy page as such in the Pages list table.
Props desrosj, subrataemfluence, ianbelanger, danieltj.
Merges [43495] to the 4.9 branch.
Fixes #44006.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43496 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:46:25 +00:00
Sergey Biryukov
5b25e87093 Twenty Seventeen: Correct list item style for nested unordered lists.
Props macbookandrew, audrasjb.
Merges [43493] to the 4.9 branch.
Fixes #44109.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43494 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:36:17 +00:00
Sergey Biryukov
9f2e375a48 Taxonomy: Ensure that invalid term objects are discarded in WP_Term_Query.
The `get_term()` mapping may result in term objects that are `null` or
`WP_Error` when plugins use `get_term` or a related filter. Since `null`
and error objects are not valid results for a term query, we discard
them.

Props GM_Alex.
Merges [43049] and [43491] to the 4.9 branch.
Fixes #42691.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43492 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:27:12 +00:00
Sergey Biryukov
6a3696fea2 REST API: Fix some incorrect @since tags.
[43437] included some new methods, which were incorrectly tagged as being `@since 4.9.7`. This updates them to `4.9.8`.

Props danielbachhuber.
Merges [43463] to the 4.9 branch.
Fixes #44287.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43490 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:15:03 +00:00
Sergey Biryukov
26d12c9753 REST API: Attachments controller should respect upload limits.
When the REST API is in use on WordPress multisite, the `WP_REST_Attachments_Controller` should respect the "Max upload file size" and "Site upload space" site options.

Props flixos90, danielbachhuber.
Merges [43462] to the 4.9 branch.
Fixes #43751.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43489 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:11:48 +00:00
Sergey Biryukov
0ce962433c Privacy: Add $request to $email_data to make it available to all filters.
Props desrosj.
Merges [43477] to the 4.9 branch.
Fixes #44379.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43488 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:09:31 +00:00
Sergey Biryukov
8e1d7cdcba Privacy: Enable pagination screen options for privacy requests list tables.
Props birgire, pbiron.
Merges [43486] to the 4.9 branch.
Fixes #44025.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43487 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 16:07:45 +00:00
Sergey Biryukov
f08f3cd027 Privacy: Remove some unnecessary code comments.
[42967] introduced some WPCS-related comments, probably accidentally saved by an IDE.

Props burhandodhy.
Merges [43465] to the 4.9 branch.
Fixes #44590.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43485 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 15:24:57 +00:00
Sergey Biryukov
2e3360dc02 Streams: Return early from wp_is_stream() for paths that aren't streams.
Some versions of PHP appear to have a memory leak that is occasionally triggered by calling `stream_get_wrappers()`. In order to avoid calling this, we can return early from `wp_is_stream()` when `$path` doesn't contain `://`.

Props pbiron, JPry, dontstealmyfish.
Merges [43466] to the 4.9 branch.
Fixes #44532.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43484 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-17 15:19:26 +00:00