38150 Commits

Author SHA1 Message Date
Sergey Biryukov
9a76fbceab Privacy: fix unit tests after [43012].
Props iandunn.
Merges [43015] to the 4.9 branch.
See #43546.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43093 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 02:16:59 +00:00
Sergey Biryukov
18a8fc5b7a Privacy: add means to export personal data by username or email address. Generate a zipped export file containing all data. First run.
Props allendav.
Merges [43012] and [43089] to the 4.9 branch.
See #43546.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43092 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 02:15:05 +00:00
Sergey Biryukov
db7cfd0afe Privacy: make the emails in export and erasure list-tables clickable.
Props birgire.
Merges [43057] to the 4.9 branch.
See #43911.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43086 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 01:07:43 +00:00
Sergey Biryukov
1d02b207aa Privacy: update and enhance the method to confirm user requests by email. Introduce WP_User_Request to hold all request vars similarly to WP_Post.
Props mikejolley, desrosj.
Merges [43011] and [43014] to the 4.9 branch.
See #43443.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43084 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 01:03:53 +00:00
Sergey Biryukov
b36469d794 Privacy: update the method to confirm user requests by email. Use a single CPT to store the requests and to allow logging/audit trail.
Props mikejolley.
Merges [43008] to the 4.9 branch.
See #43443.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43083 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 01:00:46 +00:00
Sergey Biryukov
ccccd321f6 Privacy: add helper function for anonymizing data in a standardized way.
Props jesperher, allendav, iandunn, birgire, azaozz, joemcgill.
Merges [42971] and [43081] to the 4.9 branch.
Fixes #43545.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43082 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:48:23 +00:00
Sergey Biryukov
f1dce1678f Privacy: add functionality to anonymize commenters.
Props xkon, fclaussen, allendav, birgire, azaozz.
Merges [42994] to the 4.9 branch.
See #43442.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43080 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:20:31 +00:00
Sergey Biryukov
870baf128f Privacy: docs fixes and improvements for wp_comments_personal_data_exporter().
Props desrosj.
Merges [43058] to the 4.9 branch.
See #43440.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43079 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:17:16 +00:00
Sergey Biryukov
799b903c36 Privacy: Fix JSHint errors.
Introduced in [42986].

Props jorbin.
Merges [42989] to the 4.9 branch.
See #43440.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43078 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:14:57 +00:00
Sergey Biryukov
a5d2916bdf Privacy: fix docs, formatting, white space, add tests for the personal data from comments exporter.
Props birgire.
Merges [42987] to the 4.9 branch.
See #43440.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43077 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:11:50 +00:00
Sergey Biryukov
df0de119df Privacy: add functionality for exporting personal data from comments.
Props allendav, xkon.
Merges [42888] to the 4.9 branch.
See #43440.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43076 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:10:36 +00:00
Sergey Biryukov
22f97e1e30 Privacy: add means to erase personal data by username or email address. First run.
Props allendav, coreymckrill, ericdaams, azaozz.
Merges [42986] to the 4.9 branch.
See #43637, #43602.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43075 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 00:02:01 +00:00
Sergey Biryukov
7ebb5524db Privacy: add support for exporting multiple pages of personal data.
Props allendav.
Merges [42889] to the 4.9 branch.
See #43438.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43074 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 23:57:42 +00:00
Sergey Biryukov
60248e9a03 Privacy: fix error message and list table sorting errors on the Export Personal Data and Remove Personal Data screens.
Props azaozz.
Merges [42977] to the 4.9 branch.
See #43481.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43073 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 23:48:21 +00:00
Sergey Biryukov
61018a787a Tests: Update the REST API fixtures.
[42967] included new post statii, but didn't add them to the REST API tests.

Props pento.
Merges [42972] to the 4.9 branch.
See #43481.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43072 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 23:45:35 +00:00
Sergey Biryukov
253a86bf7c Privacy: add new wp-admin screens for exporting and removing of personal data.
Props melchoyce, mikejolley, allendav, xkon.
Merges [42967] to the 4.9 branch.
See #43481.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43071 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 23:41:37 +00:00
Sergey Biryukov
d8b5073d64 Privacy: fixes and updates for the method to confirm user requests by email.
- Improve function and variable names.
- Allow extra data to be passed with the request.
- Make the option/user meta names more consistent.
- Adds an inline comment explaining use of hash.

Props mikejolley.
Merges [42964] to the 4.9 branch.
See #43443.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43070 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 23:36:37 +00:00
Sergey Biryukov
235018e300 Add a method to confirm user requests by email. First run.
Props mikejolley.
Merges [42791] to the 4.9 branch.
See #43443.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43069 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 23:33:17 +00:00
Sergey Biryukov
5e68fb88e6 TinyMCE: Update to 4.7.11.
Props iseulde.
Merges [43004] to the 4.9 branch.
Fixes #43862.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43068 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 22:30:29 +00:00
Sergey Biryukov
d9d156de80 REST API: Add who=authors as a query parameter for GET wp/v2/users.
Any WordPress user who can `edit_posts` of a post type with `show_in_rest=true` can query for authors. This maps to current WordPress behavior where a WordPress user who can view the Manage Posts view for a post type can see any WordPress user assigned to a post (whether published or draft).

This implementation, over restricting `who=authors` to users with `list_users`, gives us future flexibility in displaying lists of posts. It still respects more restrictive permissions for `context=edit`.

Props danielbachhuber.
Merges [43001] to the 4.9 branch.
Fixes #42202.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43067 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 22:17:26 +00:00
Sergey Biryukov
ee583a604d Login and Registration: Send nocache_headers() on Multisite account activation pages.
Props herregroen.
Merges [43065] to the 4.9 branch.
Fixes #43917.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43066 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 22:09:09 +00:00
Sergey Biryukov
a6d5c137d8 Privacy: add "Mine" filter for media similarly to posts and comments.
Props audrasjb.
Merged [43056], [43062], [43063] to the 4.9 branch.
Fixes #43820.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43064 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-01 22:03:18 +00:00
Sergey Biryukov
1edae38fde Themes: Avoid a PHP 7.2 warning in get_theme_roots() when $wp_theme_directories is an uncountable value.
See [41174] for `wp_get_themes()` and `get_raw_theme_root()`.

Props burlingtonbytes, teddytime, lbenicio, desrosj.
Merges [43039] to the 4.9 branch.
Fixes #43374. See #40109.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43040 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-30 04:54:54 +00:00
Sergey Biryukov
dae28e7c84 REST API: Include viewable attribute on Post Type resource for edit context.
For the block editor to be able to expose the Preview button correctly, it needs to know the `is_post_type_viewable()` setting, this change adds it to the Post Type response.

Props danielbachhuber.
Merges [43007] to the 4.9 branch.
Fixes #43739.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43038 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-30 04:30:23 +00:00
Sergey Biryukov
c125a27018 General: Introduce a polyfill for is_iterable() function added in PHP 7.1.
Props jrf, schlessera, desrosj.
Merges [43036] to the 4.9 branch.
See #43619.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43037 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-30 04:16:43 +00:00
Sergey Biryukov
170e2df167 General: Introduce a polyfill for is_countable() function added in PHP 7.3.
Props jrf, ayeshrajans, desrosj.
Merges [43034] to the 4.9 branch.
See #43583.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43035 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-30 03:46:07 +00:00
Sergey Biryukov
9530731171 Help/About: Move "Get involved" link on Credits screen to the top of the page for better visibility.
Props bridgetwillard, desrosj.
Merges [43032] to the 4.9 branch.
See #23348.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43033 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-30 03:18:22 +00:00
Sergey Biryukov
09492c6430 Login and Registration: Send nocache_headers() on Multisite signup pages.
Props herregroen.
Merges [43030] to the 4.9 branch.
Fixes #43843.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43031 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-29 23:09:55 +00:00
Sergey Biryukov
a161ca46fc Plugins: Show the required PHP version in the plugin details view, if specified.
Props xkon.
Merges [42998] to the 4.9 branch.
Fixes #43650.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43029 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-29 22:51:01 +00:00
Sergey Biryukov
578b1c9c86 Themes: Introduce theme_templates filter for page templates of all post types.
This complements the `theme_{$post_type}_templates` dynamic filter added in [38951].

Props desrosj.
Merges [43025] and [43027] to the 4.9 branch.
Fixes #43872.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43028 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-29 22:44:31 +00:00
Sergey Biryukov
5a9676cf95 Docs: Correct $id parameter type for old_slug_redirect_post_id filter.
Props dlh.
Merges [42722] to the 4.9 branch.
Fixes #43375.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43026 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-29 22:36:39 +00:00
Aaron D. Campbell
17322861fc Post 4.9.5 version bump for 4.9 branch
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42959 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 22:41:15 +00:00
Aaron D. Campbell
54ba6de546 Bump 4.9 branch to version 4.9.5
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42933 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 20:16:31 +00:00
Dominik Schilling (ocean90)
e8287f7904 Media: Update minified version of imgAreaSelect after [42874].
Adds imgAreaSelect to the uglify grunt process.

Merge of [42930] to the 4.9 branch.

Props adamsilverstein.
See #41242.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42932 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 19:50:21 +00:00
Dominik Schilling (ocean90)
3b0c5c58a7 Template: Make sure the version string is correctly escaped for use in attributes.
Merge of [42893] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42917 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 16:04:26 +00:00
Dominik Schilling (ocean90)
532f80052e HTTP: Don't treat localhost as same host by default.
Merge of [42894] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42908 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 15:34:19 +00:00
Dominik Schilling (ocean90)
ab7377b194 Login: Use wp_safe_redirect() when redirecting the login page if forced to use HTTPS.
Merge of [42892] to the 4.9 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42895 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 15:21:58 +00:00
Sergey Biryukov
144a957353 Post WordPress 4.9.5 RC 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42885 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-28 01:38:44 +00:00
Sergey Biryukov
f1aff90c17 WordPress 4.9.5 RC 1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42884 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-28 01:07:05 +00:00
Gary Pendergast
c97ecca314 Dashboard: Remove the "Try Gutenberg" callout.
As eager as we all are to see Gutenberg put before a wider audience, there are still a handful of issues that need to be fixed, which won't be done before the 4.9.5 release.

Reverts [42869].
See #41316.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42883 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-28 00:17:26 +00:00
Sergey Biryukov
bacf5e15d2 Twenty Seventeen: Bump version and update the changelog.
Props audrasjb.
Merges [42881] to the 4.9 branch.
Fixes #43572.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42882 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-27 21:11:22 +00:00
Adam Silverstein
e5bdf3a6ff Media: Fix image cropping on touch screen devices.
* In initCrop, handle touch events in addition to mouse events.
* In imageSelect jQuery plugin, accept event.which of 0 as provided by touch events.

Props yahil, alexgso, joemcgill.
Merges [42818] to the 4.9 branch.
Fixes #41242.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42874 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-24 20:25:07 +00:00
Gary Pendergast
1c5b0258b5 Dashboard: Introduce a "Try Gutenberg" callout.
To encourage more people to try Gutenberg, this new Dashboard box allows site users to easily install and try out Gutenberg.

Props pento, melchoyce, joen, karmatosed, joemcgill, SergeyBiryukov, jorbin.

Fixes #41316.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42869 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-22 00:58:32 +00:00
Sergey Biryukov
29cde1d964 Post WordPress 4.9.5 Beta 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42868 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-21 02:15:17 +00:00
Sergey Biryukov
1bde2abec1 WordPress 4.9.5 Beta 1
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42867 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-21 02:07:12 +00:00
Sergey Biryukov
b1344949d9 Media: On Media Settings screen, make the pairs of labels and inputs always stacked vertically, on both mobile and desktop screens.
Make `<br />` tags on the screen behave as line breaks again after [41836]. Add a missing fieldset + legend for better accessibility.

Props afercia, RavanH, obenland, garrett-eclipse.
Merges [42864] to the 4.9 branch.
Fixes #42724. See #34539.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42865 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-20 22:48:42 +00:00
Sergey Biryukov
342cac1a88 Formatting: Avoid a PHP 7.2 warning in wp_kses_attr() when one of $allowedtags elements is an uncountable value.
Props andrei0x309, soulseekah, SergeyBiryukov.
Merges [42860] to the 4.9 branch.
Fixes #43312.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42861 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-20 21:36:04 +00:00
Sergey Biryukov
99b7b99720 Twenty Seventeen: Underline links in comments.
Props jainnidhi, larrach, audrasjb.
Merges [42713] to the 4.9 branch.
Fixes #43317.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42859 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-20 21:18:20 +00:00
Dominik Schilling (ocean90)
c2cf0bd9d3 REST API JavaScript Client: Support an empty string for nonce to disable sending the X-WP-Nonce header.
Passing a `nonce` argument with an empty string to `wp.api.init()` now does no longer fall back to `wpApiSettings.nonce`. This makes it possible to stop sending nonce headers, for example to a read-only endpoint on another site in a multisite install.

Merge of [42852] to the 4.9 branch.

Props adamsilverstein, FPCSJames, ocean90, swissspidy.
See #42948, #43266.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42854 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-18 20:03:59 +00:00
Dominik Schilling (ocean90)
8b569c9ea0 REST API JS Client: Extend custom nonce functionality to collections.
This brings the improved nonce handling from [41553] to collections to remove the direct `wpApiSettings.nonce` dependency.

Merge of [42851] to the 4.9 branch.

Props adamsilverstein, ocean90, swissspidy.
See #43265.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42853 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-18 19:59:36 +00:00