Felix Arntz
79bf20d320
Tests: Skip multisite-only or single site-only tests correctly based on test doc annotations.
...
Without the `ms-required` and `ms-excluded` groups being marked as excluded in the PHPUnit configurations for the project, those groups were still executed, causing fatal errors. Checking against the groups in the correct structure of the array returned from PHPUnit's `Testcase::getAnnotations()` ensures that those tests are skipped properly.
Fixes #43863 .
git-svn-id: https://develop.svn.wordpress.org/trunk@43005 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-25 22:37:08 +00:00
Ella Van Dorpe
f6c215c8bf
TinyMCE: Update to 4.7.11
...
git-svn-id: https://develop.svn.wordpress.org/trunk@43004 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-25 22:34:41 +00:00
Andrew Ozz
6cd0ee3b7a
Privacy: add better docs for `wp_add_privacy_policy_content()` and `WP_Privacy_Policy_Content::add()`.
...
See #43620 .
git-svn-id: https://develop.svn.wordpress.org/trunk@43003 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-25 18:10:00 +00:00
Ian Dunn
d336475bf5
Privacy: Add template tags for building link to privacy policy page.
...
This introduces the `get_the_privacy_policy_link()` and `the_privacy_policy_link()` functions, as well as the `privacy_policy_url` filter.
A new `tests/url/` folder was added to better organize tests related to `get_*_url()` functions. Previously, those tests were placed in `tests/url.php` and `tests/link/`, but neither of those locations are optimal. Placing tests in `tests/url.php` violates the guideline of creating separate files/classes for each function under test, and using `tests/link/` conflates two distinct -- albeit related -- groups of functions. Over time, URL-related tests can be migrated to the new folder.
Props birgire, xkon, azaozz, iandunn.
See #43850 .
git-svn-id: https://develop.svn.wordpress.org/trunk@43002 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-25 15:54:29 +00:00
Gary Pendergast
50e9639f22
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.
Fixes #42202 .
git-svn-id: https://develop.svn.wordpress.org/trunk@43001 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-25 13:05:48 +00:00
Andrew Ozz
6bee78edcf
Privacy: fix styling of counts on the list tables for user requests.
...
Props allendav.
Fixes #43846 .
git-svn-id: https://develop.svn.wordpress.org/trunk@43000 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-24 21:34:59 +00:00
Andrew Ozz
84251cc161
Make the string `WordPress` translatable.
...
Props mnelson4.
See #43620 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42999 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-24 21:22:52 +00:00
Felix Arntz
f3150c77c5
Plugins: Show the required PHP version in the plugin details view, if specified.
...
Props xkon.
Fixes #43650 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42998 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-24 11:40:25 +00:00
Gary Pendergast
f9e4467b3d
REST API: Remove `permalink_structure` from the index.
...
This was originally added to allow Gutenberg to do permalink editing, but is no longer required. It's also superceded by #41014 .
Reverts [42142].
Fixes #42465 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42997 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-23 04:11:42 +00:00
Anton Timmermans
db0a8af84b
Docs: Improve JSDoc for `wp-includes/js/wp-backbone.js`.
...
Changes some additional docs after [42993].
Props birgire, adamsilverstein, netweb.
Fixes #35465 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42996 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-22 14:36:23 +00:00
Andrew Ozz
c9aaa0ddb7
Privacy: fix `get_privacy_policy_url()` to only return the URL when the page is published.
...
See #43435 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42995 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-20 14:43:26 +00:00
Andrew Ozz
7e26130f12
Privacy: add functionality to anonymize commenters.
...
Props xkon, fclaussen, allendav, birgire, azaozz.
See #43442 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42994 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-20 12:18:35 +00:00
Anton Timmermans
ad13b8bbda
Docs: Improve JSDoc for `wp-includes/js/wp-backbone.js`.
...
Props ericlewis, gma992, adamsilverstein.
Fixes #35465 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42993 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-19 14:01:48 +00:00
Andrew Ozz
ed3b9746ce
Privacy: make the sections in the suggested privacy policy text postbox foldable. Add Read More/Read Less buttons. Fix copying of the suggested text by pressing the button.
...
Props melchoyce, xkon, azaozz.
See #43620 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42992 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-19 12:38:44 +00:00
Aaron Jorbin
9208eec92c
Wow. I really shouldn't try to fix the build.
...
Previous [42989] [42986].
See #43440 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42991 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-19 00:25:52 +00:00
Aaron Jorbin
c2ec9a43ea
Remove accidental addition to package.json
...
Introduced in [42989].
See #43440 .
Unprops jorbin.
git-svn-id: https://develop.svn.wordpress.org/trunk@42990 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-19 00:23:24 +00:00
Aaron Jorbin
770fbb4bcb
Privacy: Fix JSHint errors
...
Introduced in [42986].
See #43440 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42989 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-19 00:22:11 +00:00
John Blackbourn
1b598aee0d
Upgrade/Install: Don't include `wp-includes/formatting.php` twice during installation.
...
This avoids a fatal error caused by function redeclaration.
Props ocean90, kkarpieszuk
Fixes #43609
git-svn-id: https://develop.svn.wordpress.org/trunk@42988 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-18 23:53:53 +00:00
Andrew Ozz
cf7865a91f
Privacy: fix docs, formatting, white space, add tests for the personal data from comments exporter.
...
Props birgire.
See #43440 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42987 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-18 22:54:23 +00:00
Andrew Ozz
cdb3f044c4
Privacy: add means to erase personal data by username or email address. First run.
...
Props allendav, coreymckrill, ericdaams, azaozz.
See #43637 , #43602 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42986 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-18 22:29:59 +00:00
Andrew Ozz
7eb3daf562
Fix typo in 'wp_get_default_privacy_policy_content' filter.
...
Props claudiu.
See #43620 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42985 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-17 21:08:38 +00:00
Sergey Biryukov
b7ab3c7064
I18N: Use consistent pattern for placeholder references in a translator comment in `media_upload_max_image_resize()`.
...
See #43523 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42984 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-16 18:36:03 +00:00
Sergey Biryukov
031a90a6b3
I18N: Correct placeholder references in a translator comment in `wp_print_file_editor_templates()`.
...
Props afercia.
See #43523 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42983 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-16 18:35:44 +00:00
Andrew Ozz
bb4dff10f6
Fix typo (missing `!`).
...
See #43491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42982 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-16 10:13:38 +00:00
Andrew Ozz
5786dee456
Privacy: automatically create a Privacy Policy page when installing WordPress.
...
Props fclaussen, azaozz.
Fixes #43491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42981 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-16 08:59:19 +00:00
Andrew Ozz
257842079c
Privacy: add a postbox that is shown when editing the privacy policy page, and where plugins and core will output suggested content and additional privacy info. First run.
...
Props melchoyce, azaozz.
See #43620 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42980 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-16 08:52:18 +00:00
Peter Wilson
1a40a17275
Upgrade/Install: Use high-dpi plugin icons on update dashboard.
...
Reorder the `$preferred_icons` array for plugins to prefer high-dpi icons (2x) over standard-dpi icons (1x).
Props dd32.
Fixes #43727 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42979 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-16 00:12:03 +00:00
Andrew Ozz
1af1f65a21
Privacy: improve the screen for setting a privacy policy page.
...
Props melchoyce, xkon, azaozz.
See #43435 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42978 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 17:55:25 +00:00
Andrew Ozz
99c3f4594a
Privacy: fix error message and list table sorting errors on the Export Personal Data and Remove Personal Data screens.
...
See #43481 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42977 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 16:14:54 +00:00
Felix Arntz
63eda3b3a4
Multisite: Verify the signup nonce using `wp_verify_nonce()` in `signup_nonce_check()`.
...
Prior to this change, the nonce passed from `wp-signup.php` was verified with a simple comparison. Furthermore in case of failures, `wp_die()` would be called right during the HTML markup being already printed. Now the error message is returned properly, modifying the `WP_Error` object in the passed `$result`.
Props herregroen.
Fixes #43667 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42976 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 15:29:52 +00:00
Dominik Schilling (ocean90)
2468899f38
Customize: Remove a stray whitespace.
...
Props tfrommen.
Fixes #43762 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42975 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 15:09:30 +00:00
Dominik Schilling (ocean90)
9f9facad50
Administration: Avoid an extra space in the admin body class.
...
Props jainnidhi, rhetorical, birgire, mathieuhays.
Fixes #43465 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42974 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 14:02:10 +00:00
Gary Pendergast
b57b486d96
REST API: Fix a typo introduced in [42729].
...
Props danielbachhuber.
Fixes #42707 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42973 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 00:55:28 +00:00
Gary Pendergast
30354e5a9b
Tests: Update the REST API fixtures.
...
[42967] included new post statii, but didn't add them to the REST API tests.
See #43481 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42972 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-13 00:53:31 +00:00
Andrew Ozz
43b5e9ac20
Privacy: add helper function for anonymizing data in a standardized way.
...
Props jesperher, allendav, iandunn, birgire, azaozz.
Fixes #43545 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42971 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-12 21:19:24 +00:00
Dion Hulse
1d0963afbd
Bump `$wp_version` to latest revision.
...
https://core.trac.wordpress.org/ has been moved to new infrastructure, this is a test commit to verify that trunk builds continue to work as expected.
If you notice any breakage on Trac, please report it to https://meta.trac.wordpress.org/ticket/3526 - there's a number of known UI issues at present which will be resolved soon.
git-svn-id: https://develop.svn.wordpress.org/trunk@42970 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-11 02:58:45 +00:00
Dion Hulse
f4d279af85
Bump `$wp_version` to latest revision.
...
https://core.trac.wordpress.org/ has been moved to new infrastructure, this is a test commit to verify that trunk builds continue to work as expected.
If you notice any breakage on Trac, please report it to https://meta.trac.wordpress.org/ticket/3526 - there's a number of known UI issues at present which will be resolved soon.
git-svn-id: https://develop.svn.wordpress.org/trunk@42969 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-11 02:49:49 +00:00
Ian Dunn
ede824e3cd
Dashboard: Strip more extraneous IP parts to prevent PHP warnings.
...
This iterates on earlier versions of the code, in order to handle more edge cases. An arbitrary string like `or=\"` will now be stripped, as well as reachability scopes like `%eth0`.
Props eamax, soulseekah, iandunn.
Fixes #41083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42968 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-10 23:18:04 +00:00
Andrew Ozz
33979450ac
Privacy: add new wp-admin screens for exporting and removing of personal data.
...
Props @melchoyce, @mikejolley, @allendav, @xkon.
See #43481 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42967 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-10 18:01:20 +00:00
Adam Silverstein
d68affa9c2
Revisions: improve show_split_view=false support for title.
...
* When show_split_view argument false, show title changes in a single column and only show title once if title is unchanged.
Props johnbillion, mbelchev.
Fixes #42402 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42966 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-10 16:11:55 +00:00
Adam Silverstein
495ac15555
REST API: Handle api-request query parameters with plain permalinks.
...
When constructing the request URL, ensure that `?` is replaced with `&` when the API root already contains a `?`. Fixes an issue where requests were broken when sites had permalinks set to plain.
Props aduth.
Fixes #42382 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42965 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-09 13:09:41 +00:00
Andrew Ozz
531abcbdd4
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.
See #43443 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42964 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-06 19:09:53 +00:00
Anton Timmermans
3a78d2e0fb
Docs: Improve JSDoc for `wp-admin/js/tags-box.js`.
...
Props carolinegeven, andizer, ireneyoast, herregroen, jjcomack.
Fixes #43499 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42963 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-06 07:46:14 +00:00
Anton Timmermans
da6b1b64ae
Docs: Fix JS Docs for `custom-header.js`.
...
Amends [42385].
Props herregroen.
See #42678 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42962 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-05 13:39:42 +00:00
Gary Pendergast
dc24919339
Build Tools: Update the description in package.json and composer.json.
...
The description now matches the tagline on the front page of WordPress.org.
Props ocean90.
Fixes #43558 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42961 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-05 07:15:25 +00:00
Gary Pendergast
aee223f097
Build Tools: Add a composer.json for development environments.
...
This allows Core developers to more easily run coding standards checks on PHP code.
Props netweb.
Fixes #43558 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42960 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-05 07:04:08 +00:00
Dominik Schilling (ocean90)
f68e0ab848
Media: Update built files after [42798].
...
See #43500 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42931 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 19:48:11 +00:00
Dominik Schilling (ocean90)
fd168e955c
Media: Update minified version of imgAreaSelect after [42874].
...
Adds imgAreaSelect to the uglify grunt process.
Props adamsilverstein.
Fixes #41242 .
git-svn-id: https://develop.svn.wordpress.org/trunk@42930 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 19:45:39 +00:00
Dominik Schilling (ocean90)
b3943d5742
HTTP: Don't treat `localhost` as same host by default.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@42894 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 14:59:44 +00:00
Dominik Schilling (ocean90)
768f303004
Template: Make sure the version string is correctly escaped for use in attributes.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@42893 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 14:58:48 +00:00