38077 Commits

Author SHA1 Message Date
Sergey Biryukov
d698ec7241 Privacy: Normalize file paths in wp_privacy_generate_personal_data_export_file() to make sure Windows paths don't have their backslashes stripped.
Props xkon, pmbaldha.
Merges [43234] to the 4.9 branch.
Fixes #43908.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43235 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 21:12:21 +00:00
Sergey Biryukov
d61e8ba0ed Privacy: Update request confirmation notice text for clarity.
Props desrosj, melchoyce, garrett-eclipse.
Merges [43232] to the 4.9 branch.
Fixes #43970.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43233 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 21:04:21 +00:00
Sergey Biryukov
0471434401 Privacy: Send an email notification to the user once their personal data erasure request is fulfilled.
Props desrosj, allendav, garrett-eclipse.
Merges [43230] to the 4.9 branch.
Fixes #43973.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43231 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 20:43:39 +00:00
Sergey Biryukov
32df92e14f Privacy: Avoid a PHP notice in wp_ajax_wp_privacy_erase_personal_data(), make sure $eraser_key is always defined.
Props allendav.
Merges [43228] to the 4.9 branch.
Fixes #44040.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43229 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 20:24:41 +00:00
Sergey Biryukov
b6f00e0c4c General: Skip test_is_countable_ResourceBundle() on PHP 5.3 and below.
`ResourceBundle` is only countable in PHP 5.4+, which can be considered an acceptable edge case for WordPress core purposes.

Props jrf, ayeshrajans.
Merges [43226] to the 4.9 branch.
Fixes #43583.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43227 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 20:17:00 +00:00
Andrew Ozz
7215a0f819 Privacy: Replace intrusive policy update notice with menu bubbles.
Previously, when a plugin updated its suggested privacy policy text, an admin notice was shown on all screens in the Administration Panels. That was done in order to make sure that administrators were aware of it, so that they could update their policy if needed. That was a very heavy-handed and intrusive approach, though, which leads to a poor user experience, and notice fatigue.

An alternative approach is to use bubble notifications in the menu, similar to when plugins have updates that need to be installed. That still makes it obvious that something needs the administrator's attention, but is not as distracting as a notice.

The notice will still appear on the Privacy page, though, since it is relevant to that screen, and provides an explanation of why the bubble is appearing.

Props azaozz, xkon, iandunn.
Merges [43223] to the 4.9 branch.
Fixes #43954. See #43953.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43225 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 20:07:11 +00:00
Andrew Ozz
3c71eed70a TinyMCE: switch off concatenation when a custom TinyMCE theme is used. Prevents conflict with the default theme as it loads first.
Props programmin, azaozz.
Merges [43222] to the 4.9 branch.
Fixes #43969.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43224 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 19:53:18 +00:00
Sergey Biryukov
ef2fccb0f9 General: In the is_countable() polyfill, if the provided object implements SimpleXMLElement or ResourceBundle, consider it countable.
Props ayeshrajans, jrf, desrosj.
Merges [43220] to the 4.9 branch.
Fixes #43583.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43221 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 17:58:46 +00:00
Sergey Biryukov
20c77ef6b4 Privacy: Tweak Privacy Policy page intro text for clarity.
Props macbookandrew, allendav.
Merges [43218] to the 4.9 branch.
See #43933.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43219 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 16:13:49 +00:00
Andrew Ozz
ade8d0afde Privacy: fix styling on personal data tables.
Props melchoyce, allendav.
Merges [43216] to the 4.9 branch.
Fixes #43909.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43217 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 16:03:15 +00:00
Sergey Biryukov
19a34de743 Privacy: Notify admin via email when a request is confirmed.
Previously the admin didn't have any way to know if a pending request was ready to be processed, aside from manually checking the Export/Erase pages. Sending them an email is a much more convenient option.

Props garrett-eclipse, desrosj, iandunn.
Merges [43211] to the 4.9 branch.
See #43967.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43215 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 15:55:51 +00:00
Sergey Biryukov
1421555f7b Privacy: Reposition admin pointer to avoid covering collapsed menu.
Previously the pointer overlapped the menu in order to draw attention to the fact that it applies to both the `Tools` and `Settings` menus. That caused a conflict if the menu was collapsed, though, because the icons were covered by the pointer and therefore inaccessible.

Additionally, minor tweaks were made to the text order and formatting. The order of the two sections was swapped in the title and paragraph, in order to match the order of the corresponding menu items. The spacing around headings and paragraphs was tweaked to remove extraneous whitespace.

Props littler.chicken, desrosj, ianbelanger, melchoyce.
Merges [43210] to the 4.9 branch.
Fixes #43961.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43214 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 15:53:24 +00:00
Andrew Ozz
f45dc22d51 Privacy: cleanup of the "Export Personal Data" and "Erase Personal Data" screens.
Props desrosj, xkon.
Merges [43212] to the 4.9 branch.
See #43929.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43213 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-10 10:02:41 +00:00
Sergey Biryukov
768e9aebc2 Privacy: Pass export request ID to wp_privacy_personal_data_export_file_created filter.
Props thomasplevy.
Merges [43208] to the 4.9 branch.
Fixes #44031.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43209 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 23:18:26 +00:00
Sergey Biryukov
aa9a70eb53 Privacy: Make the help hint for Privacy Policy page more translatable and accessible.
Props tobifjellner.
Merges [43206] to the 4.9 branch.
See #43980.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43207 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 23:13:35 +00:00
Andrew Ozz
f1515e34cf Privacy: show the privacy policy guide and suggested content on a new page instead of a postbox. Then:
- Separate the guide text form the suggested policy text.
- Add table of content for easier navigation.
- Move the content to tools.php (prevents the settings menu of being open).
- Add a link to the guide from the Privacy settings screen.

Props melchoyce, azaozz.
Merges [43184] and [43203] to the 4.9 branch.
Fixes #43980.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43204 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 20:59:13 +00:00
Andrew Ozz
8804648f6f Privacy: remove the help tab from Settings => Privacy until we have something helpful to say :)
Props allendav.
Merges [43201] to the 4.9 branch.
Fixes #44023.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43202 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 18:13:38 +00:00
Andrew Ozz
64fdd83bee Privacy: remove leftover comment after [43197].
Merges [43199] to the 4.9 branch.
See #43968.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43200 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 17:58:03 +00:00
Andrew Ozz
e7f241d5b9 Privacy: add request type and filter to the subject of request confirmation emails for GDPR.
Props desrosj, azaozz.
Merges [43197] to the 4.9 branch.
Fixes #43968.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43198 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 17:53:40 +00:00
Andrew Ozz
af90fefdc0 Privacy: increase filter priority of the User group in Personal Data Exports.
Props allendav desrosj.
Merges [43195] to the 4.9 branch.
Fixes #43966.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43196 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 17:12:45 +00:00
Andrew Ozz
6f527bfe2b Privacy: fix spacing on small screens for the Use This Page button in Privacy Tools.
Props PressTigers, desrosj.
Merges [43193] to the 4.9 branch.
Fixes #43852.



git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43194 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 16:15:36 +00:00
Sergey Biryukov
c02dc69b8f Privacy: Add id attribute to WP_Privacy_Requests_Table and WP_Privacy_Data_Export_Requests_Table rows, for consistency with other post list tables.
Props desrosj.
Merges [43191] to the 4.9 branch.
Fixes #44015.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43192 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 15:07:21 +00:00
Sergey Biryukov
96e90f062e Docs: Remove unused ###USERNAME### placeholder reference from user_request_action_email_content filter documentation.
Props desrosj.
Merges [43189] to the 4.9 branch.
Fixes #44016.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43190 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 14:38:44 +00:00
Sergey Biryukov
38fa108f0c Privacy: Mark erasure requests as completed after processing.
r42986 introduced the beginnings of an Ajax handler for processing requests to erase personal data. At the time, a method for marking requests as completed was planned, but had not yet been created. This commit introduces that mechanism, bringing the erasure process closer to completion.

Props coreymckrill, allendav.
Merges [43185] to the 4.9 branch.
Fixes #43922.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43188 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 14:32:41 +00:00
Sergey Biryukov
39fd607088 Privacy: Mark processed requests as completed instead of confirmed.
r43008 refactored the request flow to make several improvements, but accidentally marked `completed` requests as `confirmed`. This commit restores the intended statuses, so that the data and corresponding UI reflect reality.

Props allendav, birgire.
Merges [43183] to the 4.9 branch.
Fixes #43913.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43187 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 14:30:59 +00:00
Sergey Biryukov
054067c75d Privacy: Reuse existing archive filenames to maintain URLs.
Whenever an admin initiates a download or email of a personal data export, a fresh copy of the file is generated. Previously, a new filename was used each time, which could lead to situations where a URL that was emailed to a data subject is broken.

That can be avoided by reusing the same filename when building fresh archives.

Props desrosj, tz-media, allendav.
Merges [43180] to the 4.9 branch.
Fixes #43905.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43186 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-09 14:29:25 +00:00
Andrew Ozz
f6769376e6 TinyMCE: fix setting of zIndex on the dialogs.
Props subrataemfluence, azaozz.
Merges [43181] to the 4.9 branch.
Fixes #43984.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43182 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-08 20:56:42 +00:00
Sergey Biryukov
9c26acf935 Privacy: Use the terms "erase"/"erasure" instead of "remove"/"removal" for personal data.
Props allendav.
Merges [43175] to the 4.9 branch.
Fixes #43920.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43176 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-07 16:45:42 +00:00
Sergey Biryukov
497959661c Privacy: Change "Email Data" link text on "Export Personal Data" screen to "Send Export Link" for clarity.
Props birgire, ianbelanger.
Merges [43172] to the 4.9 branch.
Fixes #43964.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43173 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-05 09:22:23 +00:00
Sergey Biryukov
060892dec7 Privacy: Remove stray closing tag in WP_Privacy_Policy_Content::get_default_content(), fix typo in @return tag.
Props dlh, tobifjellner.
Merges [43170] to the 4.9 branch.
Fixes #43951.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43171 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-04 01:56:49 +00:00
Sergey Biryukov
4e93444320 Docs: Add missing duplicate hook comment for user_request_key_expiration filter.
Props birgire, desrosj.
Merges [43168] to the 4.9 branch.
Fixes #43934.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43169 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-04 01:48:52 +00:00
Sergey Biryukov
606d22c898 Customize: Correct closing tag in WP_Customize_Theme_Control::content_template().
Props itowhid06.
Merges [43166] to the 4.9 branch.
Fixes #43945.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43167 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-04 01:04:59 +00:00
Ian Dunn
9760ed6bad Post WordPress 4.9.6 Beta 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43165 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 21:58:34 +00:00
Ian Dunn
c6272b7196 WordPress 4.9.6 Beta 1.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43164 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 21:29:47 +00:00
Andrew Ozz
ec4aebb741 Privacy: Return before scheduling cron during install to avoid error.
r43046 introduced wp_schedule_delete_old_privacy_export_files() to schedule the wp_privacy_delete_old_export_files cron job, but it did not check to make sure it wasn't running in the context of the install process. When it did run in that context, it created a database error, because the necessary database tables don't exist at that point.

Checking the current context and returning early during the installation phase avoids that issue.

Props helen, timothyblynjacobs, iandunn.
Merges [43162] to the 4.9 branch.
Fixes #43952.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43163 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 21:14:43 +00:00
Andrew Ozz
bd36463305 Privacy: Redirect to newly created Privacy Policy page to improve UX.
Previously the user was shown a message that the page was created, but might not understand that they still need to visit the page and publish it. Redirecting them to the page makes it more obvious that additional steps are involved.

Props Clorith, xkon, azaozz.
Merges [43160] to the 4.9 branch.
Fixes #43926.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43161 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 20:09:35 +00:00
Andrew Ozz
4133b53842 Privacy: Add an admin pointer for new privacy features in 4.9.6.
The new features are very important for some users, because of their GDPR obligations. They're also spread across multiple top-level menus, making them less discoverable. An admin pointer will help to ensure that users are aware of the new tools and how to find them.

Props desrosj, andreamiddleton, allendav, xkon.
Merges [43158] to the 4.9 branch.
Fixes #43942.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43159 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 19:51:10 +00:00
Andrew Ozz
217e6e54e0 Privacy: Store plugin callbacks in associative array for flexibility.
The personal data export and erasure tools allow plugins to register their own callbacks, in order to add additional data to the export and erasure processes. Previously, these were registered without specifying a constant identifier in the array of callbacks. Using mutable integers makes it difficult for plugins to modify the callbacks of other plugins, though.

Using associative array keys instead provides a covenient and reliable way to identify and interact with another plugin's callbacks.

Props desrosj, allendav, ocean90.
Merges [43154] to the 4.9 branch.
Fixes #43931.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43157 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 19:37:32 +00:00
Andrew Ozz
bb3e7f4779 Privacy: rename manage_privacy_policy to manage_privacy_options.
Props desrosj.
Merges [43155] to the 4.9 branch.
Fixes #43935.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43156 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 19:34:21 +00:00
Andrew Ozz
64279d7f38 Privacy: Limit Privacy Settings screen to Super Admins in Multisite.
In many common Multisite use cases, the network administrator will want to set a network-wide privacy policy -- via the privacy_policy_url filter -- for consistency and convenience. When that's done, the Privacy Settings screen on individual sites becomes unnecessary, and may confuse administrators of those sites when they see that their changes don't have any effect on the policy link in the footer.

Since we can't programatically determine which behavior the network admins would like, the safest default setting is to restrict the ability to super admins, and let them delegate it to individual site owners via a plugin, if they'd like to.

Merhes [43147] to the 4.9 branch.
Fixes #43935.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43153 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 18:41:18 +00:00
Andrew Ozz
f62e44af9f Privacy: Move privacy policy page to Settings menu for consistency.
The page was originally placed under Tools so that it would be grouped with the pages to export and erase personal data, since they're all part of the effort to bring privacy management tools to Core ahead of GDPR's deadline. After more consideration, though, it makes sense to move this page to the Settings menu, since it's fundamental purpose is to configure an option, rather than to facilitate a recurring task. This keeps all of the configuration pages in a single place, making them consistent and easier to find.

Exporting and erasing personal data are recurring tasks, so they still make sense under the Tools menu.

Props xkon, helen, melchoyce, allendav, desrosj, ocean90, azaozz.
Merges [43145] to the 4.9 branch.
Fixes #43873.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43152 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 18:31:59 +00:00
Andrew Ozz
17a318b134 Privacy: use sprintf() in translations.
Props birgire.
Merges [43150] to the 4.9 branch.
See #43473.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43151 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 18:27:17 +00:00
Andrew Ozz
42e742a7cd Privacy: add default text for a privacy policy including a tutorial on now to create one.
Insert both the text and tutorial in new policy pages and highlight is brightly in the editor.
Show only the suggested text in the policy postbox.

Props melchoyce, idea15, allendav, xkon, macbookandrew, azaozz.
Merges [43044], [43048], [43052], [43126], [43146], and [43148] to the 4.9 branch.
Fixes #43473.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43149 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 17:58:40 +00:00
Andrew Ozz
7eb44af1b1 Privacy: fix displaying of messages during personal data erasure.
Props allendav.
Merges [43139] to the 4.9 branch.
Fixes #43943.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43140 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 09:25:50 +00:00
Sergey Biryukov
7367445218 REST API: When handling who=authors query parameter for GET wp/v2/users, only check edit_posts for post types that support author.
Props danielbachhuber.
Merges [43137] to the 4.9 branch.
Fixes #42202.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43138 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 06:53:09 +00:00
Sergey Biryukov
7bfeecac51 Media: Add aac to the list of allowed file types.
Props desrosj.
Merges [42697] and [43135] to the 4.9 branch.
Fixes #42919.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43136 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 06:41:48 +00:00
Sergey Biryukov
f1bac48fb1 Privacy: Uncapitalize "privacy policy" when used in a sentence.
In these contexts, "privacy policy" is not a proper noun, and therefore should not be capitalized.

The remaining uses are page titles and section headers, where capitalization is appropriate.

Props idea15, garrett-eclipse, allendav.
Merges [43132] to the 4.9 branch.
Fixes #43435.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43134 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 05:30:36 +00:00
Sergey Biryukov
4b2768da01 Privacy: Revise Privacy Policy page text to avoid misunderstanding.
The previous sentence was gramatically awkward, and using the term "compliance" could accidentally be mistaken by a site owner for a promise by WordPress that their site will be compliant after using the tool, which is not necessarily true.

Props idea15, allendav, azaozz, iandunn.
Merges [43131] to the 4.9 branch.
See #43435.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43133 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 05:29:36 +00:00
Sergey Biryukov
17c2c72c80 Comments: Move comment consent input outside the label for a11y.
Non-wrapping `label`s are more widely supported by assitive technologies. The CSS changes account for the element re-ordering, and tweak the formatting for improved readability.

Props afercia, xkon, laurelfulford, azaozz.
Merges [43125] to the 4.9 branch.
Fixes #43436.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43130 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 22:14:59 +00:00
Sergey Biryukov
88335acc0e Privacy: Use "website" in comment cookie consent text for clarity.
The term "URL" is technical jargon which will not be familiar to all commenters. "Website" is more universal, and matches the label on the url input field.

Props johnjamesjacoby, allendav, azaozz.
Merges [43123] to the 4.9 branch.
See #43436.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43129 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-02 22:13:24 +00:00