Felix Arntz
dac5651f23
Widgets: Allow basic inline tags in wp_sidebar_description()
.
...
The customizer has allowed HTML in sidebar descriptions since adding support for sidebars. This change ensures that basic HTML is also allowed for them in the widgets admin screen.
Fixes #42608 .
Built from https://develop.svn.wordpress.org/trunk@43275
git-svn-id: http://core.svn.wordpress.org/trunk@43104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-15 16:55:21 +00:00
iandunn
3aaef96ff8
Privacy: Reposition log in policy link to avoid overlapping elements.
...
Previously, the link used absolute positioning, in order to stick it at the bottom of the page. That was done in order to create visual separation between it and the "action" links, like "Lost Your Password?"
The absolute positioning can cause conflicts in some situations, though. For example, if extra text or error notices are added above the form, then the login link would be positioned on top of other elements.
Switching to relative positioning with extra margins avoids those issues, while maintaining the visual separation between the "action" links and the privacy policy link.
Props imath, melchoyce, desrosj, xkon, iandunn.
Fixes #44046 .
Built from https://develop.svn.wordpress.org/trunk@43274
git-svn-id: http://core.svn.wordpress.org/trunk@43103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-15 16:27:24 +00:00
Andrew Ozz
8c06c2c662
Privacy: only remove the "Suggested text has changed" bubble when an admin visits the Privacy Policy Guide screen.
...
Fixes #44063 .
Built from https://develop.svn.wordpress.org/trunk@43269
git-svn-id: http://core.svn.wordpress.org/trunk@43098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 17:52:21 +00:00
Andrew Ozz
2e9b08b3a2
Privacy: add wp_page_for_privacy_policy
to populate_options()
.
...
Props ocean90.
Fixes #44076 .
Built from https://develop.svn.wordpress.org/trunk@43267
git-svn-id: http://core.svn.wordpress.org/trunk@43096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 17:00:22 +00:00
Andrew Ozz
242e6eea46
Privacy: fix markup for the table of contents on privacy policy guide screen.
...
Props ocean90, azaozz.
Fixes #44056 .
Built from https://develop.svn.wordpress.org/trunk@43265
git-svn-id: http://core.svn.wordpress.org/trunk@43094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 16:46:23 +00:00
Andrew Ozz
b5564c8646
Privacy: fix the "Privacy Policy Guide updated" message and add a link to the guide.
...
Props birgire, azaozz.
Fixes #44057 .
Built from https://develop.svn.wordpress.org/trunk@43263
git-svn-id: http://core.svn.wordpress.org/trunk@43092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 16:21:21 +00:00
Dominik Schilling
2d4311e32e
Privacy: Remove is-dismissible
class from notice when privacy info has changed.
...
The notice isn't dismissible as it only gets removed once you visit the privacy guide, see #44057 and #44063 .
Fixes #44065 .
Built from https://develop.svn.wordpress.org/trunk@43261
git-svn-id: http://core.svn.wordpress.org/trunk@43090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 15:55:21 +00:00
Dominik Schilling
d3b3cc3fa5
Privacy: Don't show privacy feature pointer to new users.
...
Fixes #44062 .
Built from https://develop.svn.wordpress.org/trunk@43259
git-svn-id: http://core.svn.wordpress.org/trunk@43088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 15:50:22 +00:00
John Blackbourn
810cbb537b
Docs: Add missing HTTP methods to the list of those supported.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@43258
git-svn-id: http://core.svn.wordpress.org/trunk@43087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 15:23:21 +00:00
Andrew Ozz
3ee58b55b1
Privacy: improve inline documentation.
...
Props desrosj.
Fixes #44075 .
Built from https://develop.svn.wordpress.org/trunk@43256
git-svn-id: http://core.svn.wordpress.org/trunk@43085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 14:53:21 +00:00
Andrew Ozz
e765930982
Privacy: fix Export and Erase Personal Data list-tables on small screens.
...
Props ianbelanger, subrataemfluence, desrosj.
Fixes #44026 .
Built from https://develop.svn.wordpress.org/trunk@43251
git-svn-id: http://core.svn.wordpress.org/trunk@43080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 09:21:21 +00:00
Andrew Ozz
cb084eefd8
Privacy: define $title
and $parent_file
in privacy.php. Fixes showing the proper document title.
...
Props ocean90.
Fixes #44064 .
Built from https://develop.svn.wordpress.org/trunk@43250
git-svn-id: http://core.svn.wordpress.org/trunk@43079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-14 08:29:22 +00:00
Andrew Ozz
a75b113bed
Privacy: fix two typos in WP_Privacy_Policy_Content::get_default_content()
.
...
Props dlh.
Fixes #44050 .
Built from https://develop.svn.wordpress.org/trunk@43249
git-svn-id: http://core.svn.wordpress.org/trunk@43078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-13 11:15:21 +00:00
Andrew Ozz
b82fed1806
Privacy: require manage_privacy_options
capability for showing WP_Privacy_Policy_Content::notice()
.
...
Props ocean90.
Fixes #44055 .
Built from https://develop.svn.wordpress.org/trunk@43248
git-svn-id: http://core.svn.wordpress.org/trunk@43077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-13 11:04:21 +00:00
Sergey Biryukov
9a390ea6bd
Docs: Correct type for WP_Taxonomy::$cap
.
...
Props dlh.
Fixes #44061 .
Built from https://develop.svn.wordpress.org/trunk@43247
git-svn-id: http://core.svn.wordpress.org/trunk@43076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-13 10:31:22 +00:00
iandunn
7f23a920d2
Privacy: Reposition pointer to ensure dismiss link is always visible.
...
r43158 introduced a new admin pointer for the privacy tools added in 4.9.6. With the previous positioning, though, sometimes the `Dismiss` link would be fixed off screen, making it impossible for the user to dismiss the pointer. This happened when there were enough extra menu items, or when the viewport height was short enough.
This commit repositions the pointer to work around that problem. One down side of this workaround is that the arrow will not always be positioned next to the `Tools` menu, where it should be. That's an acceptable compromise given the current time constraints, though. A long term solution would be to make `WP_Pointer` robust enough to handle this use case.
Props imath, audrasjb, desrosj.
Fixes #44045 .
Built from https://develop.svn.wordpress.org/trunk@43246
git-svn-id: http://core.svn.wordpress.org/trunk@43075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-12 17:29:21 +00:00
iandunn
fc800115a7
Privacy: Escape comment URLs in personal export file to prevent XSS.
...
There doesn't appear to be any way for an attacker to introduce malicious input into the URL, unless a plugin is filtering the URL to add it, but it's better to be safe than sorry.
Props birgire.
Fixes #44054 .
Built from https://develop.svn.wordpress.org/trunk@43245
git-svn-id: http://core.svn.wordpress.org/trunk@43074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-12 15:56:21 +00:00
Weston Ruter
89708c5cec
Customize: Hide expansion arrows in Customizer's available widgets list.
...
Fixes regression introduced by [42794].
Props dlh.
See #40677 .
Fixes #43983 .
Built from https://develop.svn.wordpress.org/trunk@43244
git-svn-id: http://core.svn.wordpress.org/trunk@43073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-11 17:35:23 +00:00
Andrew Ozz
1b1cc0b371
Privacy: make creating a privacy policy page on install multisite compatible.
...
See #43491 .
Built from https://develop.svn.wordpress.org/trunk@43243
git-svn-id: http://core.svn.wordpress.org/trunk@43072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-11 15:44:21 +00:00
Andrew Ozz
5c5a527d96
Privacy: exclude the wrapper from the default policy content.
...
Fixes #44048 .
Built from https://develop.svn.wordpress.org/trunk@43242
git-svn-id: http://core.svn.wordpress.org/trunk@43071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-11 15:07:21 +00:00
Sergey Biryukov
b7ff8e4f9f
Privacy: On Privacy Settings screen, check if any pages exist before displaying the page selector.
...
Props abdullahramzan, desrosj, melchoyce.
Fixes #43940 .
Built from https://develop.svn.wordpress.org/trunk@43238
git-svn-id: http://core.svn.wordpress.org/trunk@43067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 21:39:22 +00:00
iandunn
b26ab11343
Privacy: Expose erasure notification recipient to filter callbacks.
...
The previous `user_email` value was redundant, because it always matched `$request_data->email`. That value might be different from where the message is sent, though, if the `user_erasure_fulfillment_email_to` filter is used. If they are different, then callbacks for the `user_confirmed_action_email_content` filter may want to distinguish between the email address of the user making the request, and the email address that the confirmation notification is being sent to.
Props desrosj, iandunn.
See #43973 .
Built from https://develop.svn.wordpress.org/trunk@43236
git-svn-id: http://core.svn.wordpress.org/trunk@43065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 21:20:22 +00:00
Sergey Biryukov
0a9de1ef2e
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.
Fixes #43908 .
Built from https://develop.svn.wordpress.org/trunk@43234
git-svn-id: http://core.svn.wordpress.org/trunk@43063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 21:11:23 +00:00
Sergey Biryukov
ae2b929294
Privacy: Update request confirmation notice text for clarity.
...
Props desrosj, melchoyce, garrett-eclipse.
Fixes #43970 .
Built from https://develop.svn.wordpress.org/trunk@43232
git-svn-id: http://core.svn.wordpress.org/trunk@43061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 20:53:21 +00:00
Sergey Biryukov
bed52dda40
Privacy: Send an email notification to the user once their personal data erasure request is fulfilled.
...
Props desrosj, allendav, garrett-eclipse.
Fixes #43973 .
Built from https://develop.svn.wordpress.org/trunk@43230
git-svn-id: http://core.svn.wordpress.org/trunk@43059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 20:43:22 +00:00
Sergey Biryukov
699cccd86e
Privacy: Avoid a PHP notice in wp_ajax_wp_privacy_erase_personal_data()
, make sure $eraser_key
is always defined.
...
Props allendav.
Fixes #44040 .
Built from https://develop.svn.wordpress.org/trunk@43228
git-svn-id: http://core.svn.wordpress.org/trunk@43057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 20:24:23 +00:00
Sergey Biryukov
5028eb01fd
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.
Fixes #43583 .
Built from https://develop.svn.wordpress.org/trunk@43226
git-svn-id: http://core.svn.wordpress.org/trunk@43055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 20:16:21 +00:00
iandunn
8af721fff8
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.
Fixes #43954 . See #43953 .
Built from https://develop.svn.wordpress.org/trunk@43223
git-svn-id: http://core.svn.wordpress.org/trunk@43052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 19:52:21 +00:00
Andrew Ozz
7b5f40133a
TinyMCE: switch off concatenation when a custom TinyMCE theme is used. Prevents conflict with the default theme as it loads first.
...
Props programmin, azaozz.
Fixes #43969 .
Built from https://develop.svn.wordpress.org/trunk@43222
git-svn-id: http://core.svn.wordpress.org/trunk@43051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 19:50:21 +00:00
Sergey Biryukov
29d5e980cc
General: In the is_countable()
polyfill, if the provided object implements SimpleXMLElement
or ResourceBundle
, consider it countable.
...
Props ayeshrajans, jrf, desrosj.
Fixes #43583 .
Built from https://develop.svn.wordpress.org/trunk@43220
git-svn-id: http://core.svn.wordpress.org/trunk@43049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 17:58:22 +00:00
Sergey Biryukov
f766c46904
Privacy: Tweak Privacy Policy page intro text for clarity.
...
Props macbookandrew, allendav.
See #43933 .
Built from https://develop.svn.wordpress.org/trunk@43218
git-svn-id: http://core.svn.wordpress.org/trunk@43047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 16:12:21 +00:00
Andrew Ozz
12d7f2be78
Privacy: fix styling on personal data tables.
...
Props melchoyce, allendav.
Fixes #43909 .
Built from https://develop.svn.wordpress.org/trunk@43216
git-svn-id: http://core.svn.wordpress.org/trunk@43045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 16:02:21 +00:00
Andrew Ozz
7d9265e5c5
Privacy: cleanup of the "Export Personal Data" and "Erase Personal Data" screens.
...
Props desrosj, xkon.
See #43929 .
Built from https://develop.svn.wordpress.org/trunk@43212
git-svn-id: http://core.svn.wordpress.org/trunk@43041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 10:01:21 +00:00
iandunn
06fd54dab6
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.
See #43967 .
Built from https://develop.svn.wordpress.org/trunk@43211
git-svn-id: http://core.svn.wordpress.org/trunk@43040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 05:00:20 +00:00
iandunn
107b52191b
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.
Fixes #43961 .
Built from https://develop.svn.wordpress.org/trunk@43210
git-svn-id: http://core.svn.wordpress.org/trunk@43039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-10 03:03:20 +00:00
Sergey Biryukov
760ab78ff9
Privacy: Pass export request ID to wp_privacy_personal_data_export_file_created
filter.
...
Props thomasplevy.
Fixes #44031 .
Built from https://develop.svn.wordpress.org/trunk@43208
git-svn-id: http://core.svn.wordpress.org/trunk@43037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 23:18:22 +00:00
Sergey Biryukov
47e6c2f9ec
Privacy: Make the help hint for Privacy Policy page more translatable and accessible.
...
Props tobifjellner.
See #43980 .
Built from https://develop.svn.wordpress.org/trunk@43206
git-svn-id: http://core.svn.wordpress.org/trunk@43035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 23:12:21 +00:00
John Blackbourn
bd9b25afbb
Upgrade/Install: Correctly internationalise error messages during config setup.
...
Fixes #43997
Built from https://develop.svn.wordpress.org/trunk@43205
git-svn-id: http://core.svn.wordpress.org/trunk@43034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 22:52:21 +00:00
Andrew Ozz
35d5911ae8
Privacy: fixes for the privacy policy guide and suggested content:
...
- 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.
See #43980 .
Built from https://develop.svn.wordpress.org/trunk@43203
git-svn-id: http://core.svn.wordpress.org/trunk@43032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 20:51:23 +00:00
Andrew Ozz
ae3e9188ce
Privacy: remove the help tab from Settings => Privacy until we have something helpful to say :)
...
Props allendav.
See #44023 .
Built from https://develop.svn.wordpress.org/trunk@43201
git-svn-id: http://core.svn.wordpress.org/trunk@43030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 18:12:22 +00:00
Andrew Ozz
89a11a8c42
Privacy: remove leftover comment after [43197].
...
See #43968 .
Built from https://develop.svn.wordpress.org/trunk@43199
git-svn-id: http://core.svn.wordpress.org/trunk@43028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 17:57:20 +00:00
Andrew Ozz
f665d16945
Privacy: add request type and filter to the subject of request confirmation emails for GDPR.
...
Props desrosj, azaozz.
See #43968 .
Built from https://develop.svn.wordpress.org/trunk@43197
git-svn-id: http://core.svn.wordpress.org/trunk@43026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 17:51:21 +00:00
Andrew Ozz
362e9754f3
Privacy: increase filter priority of the User group in Personal Data Exports.
...
Props allendav desrosj.
See #43966 .
Built from https://develop.svn.wordpress.org/trunk@43195
git-svn-id: http://core.svn.wordpress.org/trunk@43024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 17:12:21 +00:00
Andrew Ozz
83c07f7a50
Privacy: fix spacing on small screens for the Use This Page button in Privacy Tools.
...
Props PressTigers, desrosj.
Fixes #43852 .
Built from https://develop.svn.wordpress.org/trunk@43193
git-svn-id: http://core.svn.wordpress.org/trunk@43022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 16:13:21 +00:00
Sergey Biryukov
367c2e945a
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.
Fixes #44015 .
Built from https://develop.svn.wordpress.org/trunk@43191
git-svn-id: http://core.svn.wordpress.org/trunk@43020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 15:06:22 +00:00
Sergey Biryukov
db66ae1123
Docs: Remove unused ###USERNAME###
placeholder reference from user_request_action_email_content
filter documentation.
...
Props desrosj.
Fixes #44016 .
Built from https://develop.svn.wordpress.org/trunk@43189
git-svn-id: http://core.svn.wordpress.org/trunk@43018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 14:38:21 +00:00
iandunn
4467a9226c
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.
Fixes #43922 .
Built from https://develop.svn.wordpress.org/trunk@43185
git-svn-id: http://core.svn.wordpress.org/trunk@43014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-09 01:02:22 +00:00
Andrew Ozz
3099f4d9ed
Privacy: outputting the privacy policy guide and suggested content to a new page instead of a postbox.
...
Props melchoyce, azaozz.
See #43980 .
Built from https://develop.svn.wordpress.org/trunk@43184
git-svn-id: http://core.svn.wordpress.org/trunk@43013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-08 23:45:21 +00:00
iandunn
76efbf47da
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.
Fixes #43913 .
Built from https://develop.svn.wordpress.org/trunk@43183
git-svn-id: http://core.svn.wordpress.org/trunk@43012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-08 23:29:20 +00:00
Andrew Ozz
4a3b42a09e
TinyMCE: fix setting of zIndex on the dialogs.
...
Props subrataemfluence, azaozz.
See #43984 .
Built from https://develop.svn.wordpress.org/trunk@43181
git-svn-id: http://core.svn.wordpress.org/trunk@43010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-08 20:54:22 +00:00
iandunn
798e3dc84d
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.
Fixes #43905 .
Built from https://develop.svn.wordpress.org/trunk@43180
git-svn-id: http://core.svn.wordpress.org/trunk@43009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-08 00:52:21 +00:00
John Blackbourn
bfba73995c
Plugins: Correct another instance of incorrect parameter ordering when displaying plugins with more than one million active installations.
...
See #43193
Built from https://develop.svn.wordpress.org/trunk@43179
git-svn-id: http://core.svn.wordpress.org/trunk@43008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-07 21:43:20 +00:00
John Blackbourn
930c98b7d8
Plugins: Correct the parameters used when displaying plugins with more than one million active installations.
...
Fixes #43193
Built from https://develop.svn.wordpress.org/trunk@43178
git-svn-id: http://core.svn.wordpress.org/trunk@43007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-07 21:30:23 +00:00
John Blackbourn
8b34c79cec
Docs: Update and correct various inline documentation.
...
See #42505 , #41756
Built from https://develop.svn.wordpress.org/trunk@43177
git-svn-id: http://core.svn.wordpress.org/trunk@43006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-07 17:20:22 +00:00
Sergey Biryukov
8bc4e6d94f
Privacy: Use the terms "erase"/"erasure" instead of "remove"/"removal" for personal data.
...
Props allendav.
Fixes #43920 .
Built from https://develop.svn.wordpress.org/trunk@43175
git-svn-id: http://core.svn.wordpress.org/trunk@43004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-07 16:45:22 +00:00
Sergey Biryukov
cd4c960a6c
Administration: Change all the occurrences of "(opens in a new window)" to "(opens in a new tab)".
...
Props chetan200891, ianbelanger, afercia.
Fixes #43803 .
Built from https://develop.svn.wordpress.org/trunk@43174
git-svn-id: http://core.svn.wordpress.org/trunk@43003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-05 09:45:22 +00:00
Sergey Biryukov
daacd57fd4
Privacy: Change "Email Data" link text on "Export Personal Data" screen to "Send Export Link" for clarity.
...
Props birgire, ianbelanger.
Fixes #43964 .
Built from https://develop.svn.wordpress.org/trunk@43172
git-svn-id: http://core.svn.wordpress.org/trunk@43001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-05 09:17:21 +00:00
Sergey Biryukov
f055261a05
Privacy: Remove stray closing tag in WP_Privacy_Policy_Content::get_default_content()
, fix typo in @return
tag.
...
Props dlh, tobifjellner.
Fixes #43951 .
Built from https://develop.svn.wordpress.org/trunk@43170
git-svn-id: http://core.svn.wordpress.org/trunk@42999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-04 01:56:22 +00:00
Sergey Biryukov
abb666a812
Docs: Add missing duplicate hook comment for user_request_key_expiration
filter.
...
Props birgire, desrosj.
Fixes #43934 .
Built from https://develop.svn.wordpress.org/trunk@43168
git-svn-id: http://core.svn.wordpress.org/trunk@42997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-04 01:49:22 +00:00
Sergey Biryukov
3e232e8f1e
Customize: Correct closing tag in WP_Customize_Theme_Control::content_template()
.
...
Props itowhid06.
Fixes #43945 .
Built from https://develop.svn.wordpress.org/trunk@43166
git-svn-id: http://core.svn.wordpress.org/trunk@42995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-04 01:03:22 +00:00
iandunn
0e0473c9ff
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.
Fixes #43952 .
Built from https://develop.svn.wordpress.org/trunk@43162
git-svn-id: http://core.svn.wordpress.org/trunk@42991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 21:11:21 +00:00
iandunn
870e1a27f2
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.
Fixes #43926 .
Built from https://develop.svn.wordpress.org/trunk@43160
git-svn-id: http://core.svn.wordpress.org/trunk@42989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 20:06:21 +00:00
iandunn
30b5cad03d
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.
Fixes #43942 .
Built from https://develop.svn.wordpress.org/trunk@43158
git-svn-id: http://core.svn.wordpress.org/trunk@42987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 19:45:21 +00:00
Andrew Ozz
fbc98b8e75
Privacy: rename manage_privacy_policy
to manage_privacy_options
.
...
Props desrosj.
FIxes #43935 .
Built from https://develop.svn.wordpress.org/trunk@43155
git-svn-id: http://core.svn.wordpress.org/trunk@42984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 19:31:21 +00:00
iandunn
3d4c461e50
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.
Fixes #43931 .
Built from https://develop.svn.wordpress.org/trunk@43154
git-svn-id: http://core.svn.wordpress.org/trunk@42983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 19:28:21 +00:00
Andrew Ozz
58b2e6e143
Privacy: use sprintf()
in translations.
...
Props birgire.
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43150
git-svn-id: http://core.svn.wordpress.org/trunk@42979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 18:25:21 +00:00
Andrew Ozz
7d4429b2c8
Privacy: fix typos and inconsistencies in the default suggested text.
...
Props macbookandrew.
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43148
git-svn-id: http://core.svn.wordpress.org/trunk@42977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 17:42:22 +00:00
iandunn
9faae413dc
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.
Fixes #43935 .
Built from https://develop.svn.wordpress.org/trunk@43147
git-svn-id: http://core.svn.wordpress.org/trunk@42976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 17:25:21 +00:00
Andrew Ozz
c5d13c5934
Privacy: change how the default text for privacy policy is added:
...
- 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, azaozz.
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43146
git-svn-id: http://core.svn.wordpress.org/trunk@42975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 17:13:21 +00:00
iandunn
cd3ea58832
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.
Fixes #43873 .
Built from https://develop.svn.wordpress.org/trunk@43145
git-svn-id: http://core.svn.wordpress.org/trunk@42974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 16:41:22 +00:00
atimmer
21e770973c
Docs: Improve JSDoc for wp-includes.js/wpdialog.js
.
...
Props igorsch, LisanneKluitmans, manuelaugustin.
Fixes #43947 .
Built from https://develop.svn.wordpress.org/trunk@43144
git-svn-id: http://core.svn.wordpress.org/trunk@42973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 15:27:21 +00:00
atimmer
395cad7d83
Docs: Improve JSDoc for js/wp-emoji-loader.js
.
...
Props nicollle, dfangstrom, Igorsch.
Fixes #43870 .
Built from https://develop.svn.wordpress.org/trunk@43143
git-svn-id: http://core.svn.wordpress.org/trunk@42972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 15:09:21 +00:00
atimmer
b6ef716d97
Docs: Improve JSDoc for media/controllers/gallery-edit.js
.
...
Amends [43141] - includes the built media files.
See #43866 .
Built from https://develop.svn.wordpress.org/trunk@43142
git-svn-id: http://core.svn.wordpress.org/trunk@42971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 14:48:22 +00:00
atimmer
913d1f64e9
Docs: Improve JSDoc for media/controllers/gallery-edit.js
.
...
Props Xyfi, nataliashitova, igorsch, ireneyoast, manuelaugustin.
Fixes #43866 .
Built from https://develop.svn.wordpress.org/trunk@43141
git-svn-id: http://core.svn.wordpress.org/trunk@42970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 14:40:24 +00:00
Andrew Ozz
149c7ce178
Privacy: fix displaying of messages during personal data erasure.
...
Props allendav.
Fixes #43943 .
Built from https://develop.svn.wordpress.org/trunk@43139
git-svn-id: http://core.svn.wordpress.org/trunk@42968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 09:22:20 +00:00
Sergey Biryukov
4c43e71478
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.
Fixes #42202 .
Built from https://develop.svn.wordpress.org/trunk@43137
git-svn-id: http://core.svn.wordpress.org/trunk@42966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 06:52:21 +00:00
Sergey Biryukov
074535cac3
Media: Remove media player support for .aac
files due to only partial support in Firefox.
...
This still allows `.aac` files to be uploaded, but does not explicitly declare support for use in the editor and within embeds to prevent bad UX.
Props desrosj.
See #42919 .
Built from https://develop.svn.wordpress.org/trunk@43135
git-svn-id: http://core.svn.wordpress.org/trunk@42964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 06:38:21 +00:00
iandunn
267d4ef5a5
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.
Fixes #43435 .
Built from https://develop.svn.wordpress.org/trunk@43132
git-svn-id: http://core.svn.wordpress.org/trunk@42961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 00:18:21 +00:00
iandunn
41d6b9dd79
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.
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@43131
git-svn-id: http://core.svn.wordpress.org/trunk@42960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 00:07:22 +00:00
Andrew Ozz
0d2eb27a5d
Privacy: do not fold a single section in the privacy policy poxtbox.
...
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43126
git-svn-id: http://core.svn.wordpress.org/trunk@42955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 22:10:21 +00:00
iandunn
aa01cbe691
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.
Fixes #43436 .
Built from https://develop.svn.wordpress.org/trunk@43125
git-svn-id: http://core.svn.wordpress.org/trunk@42954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 22:00:49 +00:00
iandunn
753d4f10cd
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.
See #43436 .
Built from https://develop.svn.wordpress.org/trunk@43123
git-svn-id: http://core.svn.wordpress.org/trunk@42952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 21:31:21 +00:00
Andrew Ozz
dd68722112
Privacy: fix typo.
...
Props casiepa.
Fixes #43939 .
Built from https://develop.svn.wordpress.org/trunk@43121
git-svn-id: http://core.svn.wordpress.org/trunk@42950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 20:07:22 +00:00
iandunn
b1cf176f6e
Privacy: Add policy link to login screen.
...
Personal data collection is more likely for registered users than casual visitors, and the privacy policy might have been updated since a user last logged in. Those changes could impact the collection of personal data from registered users, so it makes sense to provide a link to the policy before users log in.
Props voneff, xkon, melchoyce, chetan200891, desrosj.
Fixes #43721 .
Built from https://develop.svn.wordpress.org/trunk@43120
git-svn-id: http://core.svn.wordpress.org/trunk@42949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 19:48:21 +00:00
Andrew Ozz
3a43a64c20
Privacy: fix inconsistencies in new strings.
...
Props audrasjb.
Fixes #43925 .
Built from https://develop.svn.wordpress.org/trunk@43118
git-svn-id: http://core.svn.wordpress.org/trunk@42947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 18:42:21 +00:00
Sergey Biryukov
64192e967e
Privacy: Correct unit test for wp_user_personal_data_exporter()
added in [43055].
...
`user_status` is not considered personal data, so the total number of exported user properties is 11.
See #43547 .
Built from https://develop.svn.wordpress.org/trunk@43116
git-svn-id: http://core.svn.wordpress.org/trunk@42945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 04:11:21 +00:00
Sergey Biryukov
6145ef6dea
Docs: Correct DocBlock formatting for wp_privacy_personal_data_erasers
filter.
...
See #43637 .
Built from https://develop.svn.wordpress.org/trunk@43104
git-svn-id: http://core.svn.wordpress.org/trunk@42933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 03:14:21 +00:00
Sergey Biryukov
18e8f75ee0
I18N: Use consistent pattern for placeholder references in translator comments in wp-admin/privacy.php
.
...
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@43091
git-svn-id: http://core.svn.wordpress.org/trunk@42920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:58:21 +00:00
Sergey Biryukov
a53d6b9cb9
I18N: Use consistent pattern for placeholder references in a translator comment in wp-admin/update-core.php
.
...
See #43523 .
Built from https://develop.svn.wordpress.org/trunk@43090
git-svn-id: http://core.svn.wordpress.org/trunk@42919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:55:21 +00:00
Sergey Biryukov
eca2bf8545
I18N: Correct translator comment in wp_privacy_generate_personal_data_export_file()
.
...
See #43546 .
Built from https://develop.svn.wordpress.org/trunk@43089
git-svn-id: http://core.svn.wordpress.org/trunk@42918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:52:22 +00:00
Sergey Biryukov
14ab38be27
I18N: Use consistent pattern for placeholder references in translator comments in wp_ajax_wp_privacy_erase_personal_data()
.
...
See #43438 .
Built from https://develop.svn.wordpress.org/trunk@43088
git-svn-id: http://core.svn.wordpress.org/trunk@42917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:39:21 +00:00
Gary Pendergast
2f792d442b
REST API: Filter responses based on the _fields
parameter, before data is processed.
...
Historically, the REST API would generate the entire response object, including running expensive filters, then it would apply the `_fields` parameter, discarding the fields that weren't specificed.
This change causes `_fields` to be applied earlier, so that only requested fields are processed.
Props danielbachhuber.
See #43874 .
Built from https://develop.svn.wordpress.org/trunk@43087
git-svn-id: http://core.svn.wordpress.org/trunk@42916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:25:21 +00:00
iandunn
93a90a9aa4
Privacy: Limit export and erasure to super admins on Multisite.
...
Multisite networks have a variety of use cases, and in many of them single-site administrators are not trusted to take actions that affect the whole network, require making decisions about legal compliance, etc. By default, those actions should require super admin capabilities. Plugins can be used to override that behavior if a particular site's use case calls for it.
Props allendav, jeremyfelt, iandunn.
Fixes #43919 .
Built from https://develop.svn.wordpress.org/trunk@43085
git-svn-id: http://core.svn.wordpress.org/trunk@42914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 01:07:22 +00:00
Sergey Biryukov
ae8d70c06c
Docs: Update @since
version numbers for wp_privacy_anonymize_ip()
and wp_privacy_anonymize_data()
.
...
Props joemcgill.
See #43545 .
Built from https://develop.svn.wordpress.org/trunk@43081
git-svn-id: http://core.svn.wordpress.org/trunk@42910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-02 00:41:21 +00:00
Sergey Biryukov
ac0bf9d352
Login and Registration: Send nocache_headers()
on Multisite account activation pages.
...
Props herregroen.
Fixes #43917 .
Built from https://develop.svn.wordpress.org/trunk@43065
git-svn-id: http://core.svn.wordpress.org/trunk@42894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 22:08:20 +00:00
Sergey Biryukov
8e01f9f99b
Privacy: Move "Mine" filter for media items above "Trash".
...
See #43820 .
Built from https://develop.svn.wordpress.org/trunk@43063
git-svn-id: http://core.svn.wordpress.org/trunk@42892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 21:47:21 +00:00
Sergey Biryukov
6c2470a091
I18N: Add context for "Mine" string added in [43056].
...
See #43820 .
Built from https://develop.svn.wordpress.org/trunk@43062
git-svn-id: http://core.svn.wordpress.org/trunk@42891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 21:37:23 +00:00
Andrew Ozz
2f321e234e
Privacy: improve wp_privacy_erase_personal_data()
, return boolean values.
...
Props ericdaams.
See #43602 .
Built from https://develop.svn.wordpress.org/trunk@43061
git-svn-id: http://core.svn.wordpress.org/trunk@42890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 19:27:22 +00:00
Andrew Ozz
f376b6b0c9
Privacy: translate error messages, some fixes and improvements for the AJAX actions for exporting and erasing user data.
...
Props desrosj, birgire.
See #43438 .
Built from https://develop.svn.wordpress.org/trunk@43060
git-svn-id: http://core.svn.wordpress.org/trunk@42889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 19:00:20 +00:00
iandunn
9bb0e18c82
Privacy: Include wp-admin/includes/file.php
to avoid fatal error.
...
`list_files()` is defined in `wp-admin/includes/file.php`, which is not included by `wp-cron.php`, so it needs to be included by the caller in order to avoid a fatal PHP error.
This bug was not detected during testing because the file _is_ included when executing jobs via `wp cron event run`.
Props mikejolley, iandunn.
See #43546 .
See https://wordpress.slack.com/archives/C9695RJBW/p1525190405000860 .
Built from https://develop.svn.wordpress.org/trunk@43059
git-svn-id: http://core.svn.wordpress.org/trunk@42888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 17:43:22 +00:00
Andrew Ozz
e0d2de94e7
Privacy: docs fixes and improvements for wp_comments_personal_data_exporter()
.
...
Props desrosj.
See #43440 .
Built from https://develop.svn.wordpress.org/trunk@43058
git-svn-id: http://core.svn.wordpress.org/trunk@42887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 17:18:21 +00:00
Andrew Ozz
2aa8414d09
Privacy: make the emails in export and erasure list-tables clickable.
...
Props birgire.
See #43911 .
Built from https://develop.svn.wordpress.org/trunk@43057
git-svn-id: http://core.svn.wordpress.org/trunk@42886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 17:12:22 +00:00
Andrew Ozz
3266b10d04
Privacy: add "Mine" filter for media similarly to posts and comments.
...
Props audrasjb.
See #43820 .
Built from https://develop.svn.wordpress.org/trunk@43056
git-svn-id: http://core.svn.wordpress.org/trunk@42885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 15:43:22 +00:00
Andrew Ozz
f4e6b7a29c
Privacy: add user information to the personal data export file.
...
Props TZ-Media, desrosj.
See #43547 .
Built from https://develop.svn.wordpress.org/trunk@43055
git-svn-id: http://core.svn.wordpress.org/trunk@42884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 13:59:21 +00:00
Andrew Ozz
c77a8ed2fc
Privacy: add attachments to the personal data export file.
...
Props allendav.
See #43883 .
Built from https://develop.svn.wordpress.org/trunk@43054
git-svn-id: http://core.svn.wordpress.org/trunk@42883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 13:45:21 +00:00
Andrew Ozz
5133e5131b
Privacy: fix and improve the help text about adding a privacy policy page.
...
Props idea15, xkon.
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@43053
git-svn-id: http://core.svn.wordpress.org/trunk@42882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 11:43:22 +00:00
Andrew Ozz
237df3367b
Privacy: only fold the sections in the privacy policy poxtbox when more than one.
...
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43052
git-svn-id: http://core.svn.wordpress.org/trunk@42881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 09:48:21 +00:00
iandunn
b4290211f4
Bundled Themes: Add link to privacy policy page in footer.
...
If a privacy policy has been set, then a link to it will automatically be shown in the footer.
The element containing the "Proudly powered by WordPress" link was chosen for the new policy link, in order to minimize visual conflicts with custom CSS that was written before the new link existed. Unfortunately, some minor conflicts are expected and unavoidable. Adding this link is required as part of GDPR compliance, and the benefits outweigh the downsides.
To further mitigate the conflicts, a new `imprint` class was added to the "Proudly powered..." link, in order to facilitate targeting each link invididually with custom styles.
Props xkon, laurelfulford, birgire, azaozz, iandunn.
See #43715 .
Built from https://develop.svn.wordpress.org/trunk@43051
git-svn-id: http://core.svn.wordpress.org/trunk@42880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 06:28:21 +00:00
Peter Wilson
2e43234f3f
Cron API: Return meaningful values from cron functions.
...
Return values added to Cron API functions to indicate outcome:
* `wp_schedule_single_event()`, `wp_schedule_event()`, `wp_reschedule_event()` and `wp_unschedule_event()`: boolean indicating success or failure,
* `wp_clear_scheduled_hook()`: integer indicating number of jobs cleared (zero or more), `false` if one or more jobs fail to clear,
* `wp_unschedule_hook()`: integer indicating number of jobs cleared (zero or more), `false` if the jobs fail to clear,
* `spawn_cron()`: boolean indicating whether job spawned,
* `wp_cron()`: integer indicating number of jobs spawned (zero or more), `false` if one or more jobs fail to spawned,
* `_set_cron_array()`: boolean outcome of `update_option()`.
Props evansolomon, jrf, peterwilsoncc, pento for code review.
Fixes #21072 .
Built from https://develop.svn.wordpress.org/trunk@43050
git-svn-id: http://core.svn.wordpress.org/trunk@42879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 02:05:23 +00:00
Boone Gorges
0dc6bd7c04
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.
See #42691 .
Built from https://develop.svn.wordpress.org/trunk@43049
git-svn-id: http://core.svn.wordpress.org/trunk@42878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 21:08:22 +00:00
Andrew Ozz
d1ab641d16
Privacy: edits and improvements for the default text for a privacy policy.
...
Props idea15, allendav.
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43048
git-svn-id: http://core.svn.wordpress.org/trunk@42877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 21:06:21 +00:00
iandunn
9abc0fe73e
Privacy: Add wp_privacy_personal_data_export_file_created
filter.
...
This runs immediately after the data export file has been successfully created, allowing plugins to introduce some workflow customizations. For example, a plugin could password-protect the export file, for peace of mind, even though the CSPRN in the filename makes brute force attacks nearly impossible.
See #43546 .
Built from https://develop.svn.wordpress.org/trunk@43047
git-svn-id: http://core.svn.wordpress.org/trunk@42876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 21:04:22 +00:00
iandunn
23bf0c7535
Privacy: Add cron to delete expired export files to protect privacy.
...
The primary means of protecting the files is the CSPRN appended to the filename, but there is no reason to keep the files after the data subject has downloaded them, so deleting them provides an additional layer of protection. Previously this was done from `wp_privacy_generate_personal_data_export_file()`, but that does not guarantee that it will be run regularly, and on smaller sites that could result in export files being exposed for much longer than necessary.
`wp_privacy_delete_old_export_files()` was moved to a front end file, so that it can be called from `cron.php`.
This introduces the `wp_privacy_export_expiration` filter, which allows plugins to customize how long the exports are kept before being deleted.
`index.html` was added to the `$exclusions` parameter of `list_files()` to make sure that it isn't deleted. If it were, then poorly-configured servers would allow the directory to be traversed, exposing all of the exported files.
Props iandunn, desrosj.
See #43546 .
Built from https://develop.svn.wordpress.org/trunk@43046
git-svn-id: http://core.svn.wordpress.org/trunk@42875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 20:09:23 +00:00
iandunn
5b4aa26436
Privacy: Use a CSPRNG in export filenames for more security.
...
`rand()` is deterministic and therefore offers much less protection in this context. `wp_generate_password()` is a convenient wrapper around `wp_rand()`, which uses `random_int()` to generate cryptographically-secure psuedorandom numbers.
See #43546 .
Built from https://develop.svn.wordpress.org/trunk@43045
git-svn-id: http://core.svn.wordpress.org/trunk@42874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 18:53:25 +00:00
Andrew Ozz
c21c4e25b3
Privacy: add default text for a privacy policy. First run.
...
Props xkon, idea15, allendav, azaozz.
See #43473 .
Built from https://develop.svn.wordpress.org/trunk@43044
git-svn-id: http://core.svn.wordpress.org/trunk@42873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 14:47:21 +00:00
John Blackbourn
d488e773b0
Docs: Update the inline docs for is_protected_meta()
.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@43043
git-svn-id: http://core.svn.wordpress.org/trunk@42872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 14:39:21 +00:00
John Blackbourn
cf02373b39
Comments: Update the inline docs following [42772].
...
See #43436
Built from https://develop.svn.wordpress.org/trunk@43042
git-svn-id: http://core.svn.wordpress.org/trunk@42871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 13:10:20 +00:00
Andrea Fercia
eac393b6f1
Coding standards: Change a few occurrences of font weight 700 to 600 in multisite signup and activate.
...
Props chetan200891.
Amends [43018].
See #43897 .
Built from https://develop.svn.wordpress.org/trunk@43041
git-svn-id: http://core.svn.wordpress.org/trunk@42870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 07:05:21 +00:00
Sergey Biryukov
4b6794ba57
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.
Fixes #43374 . See #40109 .
Built from https://develop.svn.wordpress.org/trunk@43039
git-svn-id: http://core.svn.wordpress.org/trunk@42868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 04:51:22 +00:00
Sergey Biryukov
94cbb2a3f6
General: Introduce a polyfill for is_iterable()
function added in PHP 7.1.
...
Props jrf, schlessera, desrosj.
See #43619 .
Built from https://develop.svn.wordpress.org/trunk@43036
git-svn-id: http://core.svn.wordpress.org/trunk@42865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 04:15:21 +00:00
Sergey Biryukov
5813ccec07
General: Introduce a polyfill for is_countable()
function added in PHP 7.3.
...
Props jrf, ayeshrajans, desrosj.
See #43583 .
Built from https://develop.svn.wordpress.org/trunk@43034
git-svn-id: http://core.svn.wordpress.org/trunk@42863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 03:43:21 +00:00
Sergey Biryukov
70a214c186
Help/About: Move "Get involved" link on Credits screen to the top of the page for better visibility.
...
Props bridgetwillard, desrosj.
See #23348 .
Built from https://develop.svn.wordpress.org/trunk@43032
git-svn-id: http://core.svn.wordpress.org/trunk@42861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-30 03:16:22 +00:00
Sergey Biryukov
bc5a539c4d
Login and Registration: Send nocache_headers()
on Multisite signup pages.
...
Props herregroen.
Fixes #43843 .
Built from https://develop.svn.wordpress.org/trunk@43030
git-svn-id: http://core.svn.wordpress.org/trunk@42859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 23:05:21 +00:00
Sergey Biryukov
95071b2ea1
Docs: Update @since
version for theme_templates
filter added in [43025].
...
See #43872 .
Built from https://develop.svn.wordpress.org/trunk@43027
git-svn-id: http://core.svn.wordpress.org/trunk@42856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 22:42:22 +00:00
Sergey Biryukov
0c071471d6
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.
Fixes #43872 .
Built from https://develop.svn.wordpress.org/trunk@43025
git-svn-id: http://core.svn.wordpress.org/trunk@42854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 22:18:22 +00:00
Sergey Biryukov
00ae0a1097
Docs: Remove backtick-escaping around a core function in the hook docs for the pre_prepare_themes_for_js
filter.
...
This allows the function to be auto-linked in the Developer Reference. Added in [42877].
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@43024
git-svn-id: http://core.svn.wordpress.org/trunk@42853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 21:47:22 +00:00
Sergey Biryukov
f8177e3a73
Docs: Remove backtick-escaping around a core function in the hook docs for the comment_form_submit_button
filter.
...
This allows the function to be auto-linked in the Developer Reference. See [32037] for `comment_form_submit_field`.
See #42505 , #31888 .
Built from https://develop.svn.wordpress.org/trunk@43023
git-svn-id: http://core.svn.wordpress.org/trunk@42852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 21:44:22 +00:00
Sergey Biryukov
9a8f48c9bc
Docs: Add missing verb in is_admin()
, is_blog_admin()
, is_network_admin()
, is_user_admin()
descriptions.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@43022
git-svn-id: http://core.svn.wordpress.org/trunk@42851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 21:14:22 +00:00
Andrea Fercia
e663af477a
Coding standards: Change one occurrence of font weight 700 to 600.
...
Props chetan200891.
Amends [43018].
See #43897 .
Built from https://develop.svn.wordpress.org/trunk@43021
git-svn-id: http://core.svn.wordpress.org/trunk@42850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 18:04:21 +00:00
Andrea Fercia
2e8149064e
Accessibility: Improve the Themes Installer navigation buttons accessibility.
...
- really disables buttons when they look disabled (when navigation is at the first or last theme)
- when navigation is at the first or last theme, moves focus to the other navigation button, to avoid a focus loss
- improves the buttons visually hidden accessibility text
Props walbo, afercia.
Fixes #36627 .
Built from https://develop.svn.wordpress.org/trunk@43020
git-svn-id: http://core.svn.wordpress.org/trunk@42849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 17:04:22 +00:00
Andrea Fercia
8d9f1ae0d5
Accessibility: Better color contrast for the tables pagination links.
...
By making the pagination links use the default style for buttons, color contrast
is improved and the CSS is simplified. Improves consistency with other UI controls.
Also, slightly increases the white space below the pagination links.
Props benoitchantre, afercia.
Fixes #41858 .
Built from https://develop.svn.wordpress.org/trunk@43019
git-svn-id: http://core.svn.wordpress.org/trunk@42848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 16:25:21 +00:00
Andrea Fercia
26e91765eb
Coding standards: Use numeric font weights instead of keywords.
...
Fixes #43897 .
Built from https://develop.svn.wordpress.org/trunk@43018
git-svn-id: http://core.svn.wordpress.org/trunk@42847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-29 11:37:21 +00:00
John Blackbourn
e2719c4e90
Docs: Correct the possible return types for the wpdb::query()
method.
...
Props isabel104
See #42505
Built from https://develop.svn.wordpress.org/trunk@43017
git-svn-id: http://core.svn.wordpress.org/trunk@42846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-28 14:44:23 +00:00
John Blackbourn
4ccca7a835
Formatting: Begin the process of improving the docs for KSES related functions.
...
See #33801
Built from https://develop.svn.wordpress.org/trunk@43016
git-svn-id: http://core.svn.wordpress.org/trunk@42845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-28 13:58:21 +00:00
Andrew Ozz
3677e99e4b
Privacy: fix unit tests after [43012].
...
Props iandunn.
See #43546 .
Built from https://develop.svn.wordpress.org/trunk@43015
git-svn-id: http://core.svn.wordpress.org/trunk@42844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-28 12:11:21 +00:00
Andrew Ozz
bfc9c2f469
Fix docs and white space.
...
Props desrosj.
See #43443 .
Built from https://develop.svn.wordpress.org/trunk@43014
git-svn-id: http://core.svn.wordpress.org/trunk@42843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-28 12:04:21 +00:00
John Blackbourn
666887f974
Build/Test Tools: Don't trigger the global variable override PHPCS sniff for core.
...
Props jrf
Fixes #43776
Built from https://develop.svn.wordpress.org/trunk@43013
git-svn-id: http://core.svn.wordpress.org/trunk@42842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-28 00:45:20 +00:00
Andrew Ozz
b044b4053e
Privacy: add means to export personal data by username or email address. Generate a zipped export file containing all data. First run.
...
Props allendav.
See #43546 .
Built from https://develop.svn.wordpress.org/trunk@43012
git-svn-id: http://core.svn.wordpress.org/trunk@42841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 19:54:21 +00:00
Andrew Ozz
e9eb7518c0
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.
See #43443 .
Built from https://develop.svn.wordpress.org/trunk@43011
git-svn-id: http://core.svn.wordpress.org/trunk@42840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 17:31:22 +00:00
Felix Arntz
af6704edad
Multisite: Add meta query functionality to WP_Site_Query
.
...
After the introduction of site metadata in [42836], it should be possible to query sites by that data.
Fixes #40229 .
Built from https://develop.svn.wordpress.org/trunk@43010
git-svn-id: http://core.svn.wordpress.org/trunk@42839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 11:41:22 +00:00
Felix Arntz
a11d2f6a76
Bootstrap: Load class-wp-meta-query.php
earlier in wp-settings.php
.
...
This change is necessary to enable multisite-specific meta query functionality during the multisite bootstrap process.
Fixes #40948 . See #40229 .
Built from https://develop.svn.wordpress.org/trunk@43009
git-svn-id: http://core.svn.wordpress.org/trunk@42838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 11:37:21 +00:00
Andrew Ozz
f1703c0e70
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.
See #43443 .
Built from https://develop.svn.wordpress.org/trunk@43008
git-svn-id: http://core.svn.wordpress.org/trunk@42837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 10:12:22 +00:00
Gary Pendergast
52d0b2f982
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.
Fixes #43739 .
Built from https://develop.svn.wordpress.org/trunk@43007
git-svn-id: http://core.svn.wordpress.org/trunk@42836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-27 03:06:21 +00:00
Felix Arntz
6b2e34f703
General: Implement editorial, design and accessibility feedback for the PHP version nag.
...
The updated version of the nag is shorter, more on point and less aggressive than the previous one. It integrates better with the other dashboard widgets and fixes several accessibility concerns. A yellow warning color is used when the current PHP version is outdated, a red error color is used when it is also insecure.
Props afercia, birgire, danieltj, flixos90, johnjamesjacoby, karmatosed, Luciano Croce, nerrad, pento, schlessera, SergeyBiryukov, sonjaleix.
Fixes #41191 .
Built from https://develop.svn.wordpress.org/trunk@43006
git-svn-id: http://core.svn.wordpress.org/trunk@42835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-26 14:31:24 +00:00
Felix Arntz
603c91b3bc
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 .
Built from https://develop.svn.wordpress.org/trunk@43005
git-svn-id: http://core.svn.wordpress.org/trunk@42834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-25 22:38:21 +00:00
Ella Iseulde Van Dorpe
6e215cae48
TinyMCE: Update to 4.7.11
...
Built from https://develop.svn.wordpress.org/trunk@43004
git-svn-id: http://core.svn.wordpress.org/trunk@42833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-25 22:35:21 +00:00
Andrew Ozz
41a82d6078
Privacy: add better docs for wp_add_privacy_policy_content()
and WP_Privacy_Policy_Content::add()
.
...
See #43620 .
Built from https://develop.svn.wordpress.org/trunk@43003
git-svn-id: http://core.svn.wordpress.org/trunk@42832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-25 18:10:21 +00:00
iandunn
c9c3c61a53
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 .
Built from https://develop.svn.wordpress.org/trunk@43002
git-svn-id: http://core.svn.wordpress.org/trunk@42831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-25 15:55:21 +00:00
Gary Pendergast
41968f7ea9
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 .
Built from https://develop.svn.wordpress.org/trunk@43001
git-svn-id: http://core.svn.wordpress.org/trunk@42830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-25 13:06:21 +00:00
Andrew Ozz
13875fbddb
Privacy: fix styling of counts on the list tables for user requests.
...
Props allendav.
Fixes #43846 .
Built from https://develop.svn.wordpress.org/trunk@43000
git-svn-id: http://core.svn.wordpress.org/trunk@42829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-24 21:35:21 +00:00
Andrew Ozz
11e315ca23
Make the string WordPress
translatable.
...
Props mnelson4.
See #43620 .
Built from https://develop.svn.wordpress.org/trunk@42999
git-svn-id: http://core.svn.wordpress.org/trunk@42828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-24 21:23:21 +00:00
Felix Arntz
c1efc2519b
Plugins: Show the required PHP version in the plugin details view, if specified.
...
Props xkon.
Fixes #43650 .
Built from https://develop.svn.wordpress.org/trunk@42998
git-svn-id: http://core.svn.wordpress.org/trunk@42827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-24 11:41:25 +00:00
Gary Pendergast
e22489f06c
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 .
Built from https://develop.svn.wordpress.org/trunk@42997
git-svn-id: http://core.svn.wordpress.org/trunk@42826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-23 04:12:20 +00:00
atimmer
c1754d9ac1
Docs: Improve JSDoc for wp-includes/js/wp-backbone.js
.
...
Changes some additional docs after [42993].
Props birgire, adamsilverstein, netweb.
Fixes #35465 .
Built from https://develop.svn.wordpress.org/trunk@42996
git-svn-id: http://core.svn.wordpress.org/trunk@42825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-22 14:37:21 +00:00
Andrew Ozz
cf0d00c602
Privacy: fix get_privacy_policy_url()
to only return the URL when the page is published.
...
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@42995
git-svn-id: http://core.svn.wordpress.org/trunk@42824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-20 14:44:20 +00:00
Andrew Ozz
81668f8312
Privacy: add functionality to anonymize commenters.
...
Props xkon, fclaussen, allendav, birgire, azaozz.
See #43442 .
Built from https://develop.svn.wordpress.org/trunk@42994
git-svn-id: http://core.svn.wordpress.org/trunk@42823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-20 12:19:21 +00:00
atimmer
bb8d67e6ea
Docs: Improve JSDoc for wp-includes/js/wp-backbone.js
.
...
Props ericlewis, gma992, adamsilverstein.
Fixes #35465 .
Built from https://develop.svn.wordpress.org/trunk@42993
git-svn-id: http://core.svn.wordpress.org/trunk@42822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-19 14:02:22 +00:00
Andrew Ozz
891deab7c5
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 .
Built from https://develop.svn.wordpress.org/trunk@42992
git-svn-id: http://core.svn.wordpress.org/trunk@42821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-19 12:39:21 +00:00
Aaron Jorbin
0b0c754563
Wow. I really shouldn't try to fix the build.
...
Previous [42989] [42986].
See #43440 .
Built from https://develop.svn.wordpress.org/trunk@42991
git-svn-id: http://core.svn.wordpress.org/trunk@42820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-19 00:26:21 +00:00
Aaron Jorbin
010a12240f
Remove accidental addition to package.json
...
Introduced in [42989].
See #43440 .
Unprops jorbin.
Built from https://develop.svn.wordpress.org/trunk@42990
git-svn-id: http://core.svn.wordpress.org/trunk@42819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-19 00:24:21 +00:00
Aaron Jorbin
1da2fdb891
Privacy: Fix JSHint errors
...
Introduced in [42986].
See #43440 .
Built from https://develop.svn.wordpress.org/trunk@42989
git-svn-id: http://core.svn.wordpress.org/trunk@42818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-19 00:23:20 +00:00
John Blackbourn
ea8052df59
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
Built from https://develop.svn.wordpress.org/trunk@42988
git-svn-id: http://core.svn.wordpress.org/trunk@42817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-18 23:54:20 +00:00
Andrew Ozz
fbb51eafb0
Privacy: fix docs, formatting, white space, add tests for the personal data from comments exporter.
...
Props birgire.
See #43440 .
Built from https://develop.svn.wordpress.org/trunk@42987
git-svn-id: http://core.svn.wordpress.org/trunk@42816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-18 22:55:22 +00:00
Andrew Ozz
b4fdb9ebf2
Privacy: add means to erase personal data by username or email address. First run.
...
Props allendav, coreymckrill, ericdaams, azaozz.
See #43637 , #43602 .
Built from https://develop.svn.wordpress.org/trunk@42986
git-svn-id: http://core.svn.wordpress.org/trunk@42815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-18 22:30:22 +00:00
Andrew Ozz
8d9e4937f8
Fix typo in 'wp_get_default_privacy_policy_content' filter.
...
Props claudiu.
See #43620 .
Built from https://develop.svn.wordpress.org/trunk@42985
git-svn-id: http://core.svn.wordpress.org/trunk@42814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-17 21:09:20 +00:00
Sergey Biryukov
acd3f4cb10
I18N: Use consistent pattern for placeholder references in a translator comment in media_upload_max_image_resize()
.
...
See #43523 .
Built from https://develop.svn.wordpress.org/trunk@42984
git-svn-id: http://core.svn.wordpress.org/trunk@42813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-16 18:37:20 +00:00
Sergey Biryukov
3957635dfb
I18N: Correct placeholder references in a translator comment in wp_print_file_editor_templates()
.
...
Props afercia.
See #43523 .
Built from https://develop.svn.wordpress.org/trunk@42983
git-svn-id: http://core.svn.wordpress.org/trunk@42812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-16 18:36:24 +00:00
Andrew Ozz
280aeff5d2
Fix typo (missing !
).
...
See #43491 .
Built from https://develop.svn.wordpress.org/trunk@42982
git-svn-id: http://core.svn.wordpress.org/trunk@42811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-16 10:14:21 +00:00
Andrew Ozz
f1e065b13b
Privacy: automatically create a Privacy Policy page when installing WordPress.
...
Props fclaussen, azaozz.
Fixes #43491 .
Built from https://develop.svn.wordpress.org/trunk@42981
git-svn-id: http://core.svn.wordpress.org/trunk@42810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-16 09:00:20 +00:00
Andrew Ozz
3108d2ffb2
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 .
Built from https://develop.svn.wordpress.org/trunk@42980
git-svn-id: http://core.svn.wordpress.org/trunk@42809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-16 08:53:20 +00:00
Peter Wilson
fc20505750
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 .
Built from https://develop.svn.wordpress.org/trunk@42979
git-svn-id: http://core.svn.wordpress.org/trunk@42808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-16 00:13:20 +00:00
Andrew Ozz
4b2587abda
Privacy: improve the screen for setting a privacy policy page.
...
Props melchoyce, xkon, azaozz.
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@42978
git-svn-id: http://core.svn.wordpress.org/trunk@42807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 17:56:20 +00:00
Andrew Ozz
600c5082a3
Privacy: fix error message and list table sorting errors on the Export Personal Data and Remove Personal Data screens.
...
See #43481 .
Built from https://develop.svn.wordpress.org/trunk@42977
git-svn-id: http://core.svn.wordpress.org/trunk@42806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 16:15:21 +00:00
Felix Arntz
35cdc99039
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 .
Built from https://develop.svn.wordpress.org/trunk@42976
git-svn-id: http://core.svn.wordpress.org/trunk@42805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 15:30:20 +00:00
Dominik Schilling
888236585c
Customize: Remove a stray whitespace.
...
Props tfrommen.
Fixes #43762 .
Built from https://develop.svn.wordpress.org/trunk@42975
git-svn-id: http://core.svn.wordpress.org/trunk@42804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 15:10:20 +00:00
Dominik Schilling
3b76937ec8
Administration: Avoid an extra space in the admin body class.
...
Props jainnidhi, rhetorical, birgire, mathieuhays.
Fixes #43465 .
Built from https://develop.svn.wordpress.org/trunk@42974
git-svn-id: http://core.svn.wordpress.org/trunk@42803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 14:03:20 +00:00
Gary Pendergast
7630cc1bad
REST API: Fix a typo introduced in [42729].
...
Props danielbachhuber.
Fixes #42707 .
Built from https://develop.svn.wordpress.org/trunk@42973
git-svn-id: http://core.svn.wordpress.org/trunk@42802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 00:56:21 +00:00
Gary Pendergast
b0d9c54594
Tests: Update the REST API fixtures.
...
[42967] included new post statii, but didn't add them to the REST API tests.
See #43481 .
Built from https://develop.svn.wordpress.org/trunk@42972
git-svn-id: http://core.svn.wordpress.org/trunk@42801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-13 00:54:20 +00:00
Andrew Ozz
5493d8b253
Privacy: add helper function for anonymizing data in a standardized way.
...
Props jesperher, allendav, iandunn, birgire, azaozz.
Fixes #43545 .
Built from https://develop.svn.wordpress.org/trunk@42971
git-svn-id: http://core.svn.wordpress.org/trunk@42800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-12 21:20:23 +00:00
Dion Hulse
9bbb2618e4
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.
Built from https://develop.svn.wordpress.org/trunk@42970
git-svn-id: http://core.svn.wordpress.org/trunk@42799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-11 02:59:21 +00:00
Dion Hulse
2844563752
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.
Built from https://develop.svn.wordpress.org/trunk@42969
git-svn-id: http://core.svn.wordpress.org/trunk@42798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-11 02:50:22 +00:00
iandunn
057cef802a
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 .
Built from https://develop.svn.wordpress.org/trunk@42968
git-svn-id: http://core.svn.wordpress.org/trunk@42797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-10 23:19:30 +00:00
Andrew Ozz
108578a8ec
Privacy: add new wp-admin screens for exporting and removing of personal data.
...
Props @melchoyce, @mikejolley, @allendav, @xkon.
See #43481 .
Built from https://develop.svn.wordpress.org/trunk@42967
git-svn-id: http://core.svn.wordpress.org/trunk@42796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-10 18:02:30 +00:00
Adam Silverstein
d1d6e8864e
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 .
Built from https://develop.svn.wordpress.org/trunk@42966
git-svn-id: http://core.svn.wordpress.org/trunk@42795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-10 16:12:30 +00:00
Adam Silverstein
b76da1fdf3
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 .
Built from https://develop.svn.wordpress.org/trunk@42965
git-svn-id: http://core.svn.wordpress.org/trunk@42794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-09 13:10:31 +00:00
Andrew Ozz
d3f054b5a9
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 .
Built from https://develop.svn.wordpress.org/trunk@42964
git-svn-id: http://core.svn.wordpress.org/trunk@42793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-06 19:10:30 +00:00
atimmer
f111796282
Docs: Improve JSDoc for wp-admin/js/tags-box.js
.
...
Props carolinegeven, andizer, ireneyoast, herregroen, jjcomack.
Fixes #43499 .
Built from https://develop.svn.wordpress.org/trunk@42963
git-svn-id: http://core.svn.wordpress.org/trunk@42792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-06 07:47:32 +00:00
atimmer
0c37fe30ac
Docs: Fix JS Docs for custom-header.js
.
...
Amends [42385].
Props herregroen.
See #42678 .
Built from https://develop.svn.wordpress.org/trunk@42962
git-svn-id: http://core.svn.wordpress.org/trunk@42791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-05 13:40:30 +00:00
Gary Pendergast
e445cdee79
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 .
Built from https://develop.svn.wordpress.org/trunk@42961
git-svn-id: http://core.svn.wordpress.org/trunk@42790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-05 07:16:30 +00:00
Gary Pendergast
756abbd0a3
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 .
Built from https://develop.svn.wordpress.org/trunk@42960
git-svn-id: http://core.svn.wordpress.org/trunk@42789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-05 07:05:30 +00:00
Dominik Schilling
f33092e163
Media: Update built files after [42798].
...
See #43500 .
Built from https://develop.svn.wordpress.org/trunk@42931
git-svn-id: http://core.svn.wordpress.org/trunk@42761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 19:49:30 +00:00
Dominik Schilling
eab5e4bb82
Media: Update minified version of imgAreaSelect after [42874].
...
Adds imgAreaSelect to the uglify grunt process.
Props adamsilverstein.
Fixes #41242 .
Built from https://develop.svn.wordpress.org/trunk@42930
git-svn-id: http://core.svn.wordpress.org/trunk@42760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 19:46:30 +00:00
Dominik Schilling
8043638596
HTTP: Don't treat localhost
as same host by default.
...
Built from https://develop.svn.wordpress.org/trunk@42894
git-svn-id: http://core.svn.wordpress.org/trunk@42724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 15:00:31 +00:00
Dominik Schilling
31a4369366
Template: Make sure the version string is correctly escaped for use in attributes.
...
Built from https://develop.svn.wordpress.org/trunk@42893
git-svn-id: http://core.svn.wordpress.org/trunk@42723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 14:59:31 +00:00
Dominik Schilling
14bc2c0a6f
Login: Use wp_safe_redirect()
when redirecting the login page if forced to use HTTPS.
...
Built from https://develop.svn.wordpress.org/trunk@42892
git-svn-id: http://core.svn.wordpress.org/trunk@42722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 14:32:31 +00:00
Felix Arntz
921e131eae
General: Improve wording for PHP version nag.
...
This changeset adjusts the tone of the message to fit the usual core voice better and addresses accessibility concerns.
Props schlessera.
See #41191 .
Built from https://develop.svn.wordpress.org/trunk@42891
git-svn-id: http://core.svn.wordpress.org/trunk@42721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-02 10:15:33 +00:00
Sergey Biryukov
9a11487e22
Taxonomy: In category_description()
, don't pass the $taxonomy
parameter to term_description()
.
...
The parameter was deprecated in [42368] and is now unused.
Props chetan200891.
Fixes #43381 . See #42771 .
Built from https://develop.svn.wordpress.org/trunk@42890
git-svn-id: http://core.svn.wordpress.org/trunk@42720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-28 23:25:29 +00:00
Andrew Ozz
a4beb40d0b
Privacy: add support for exporting multiple pages of personal data.
...
Props allendav.
See #43438 .
Built from https://develop.svn.wordpress.org/trunk@42889
git-svn-id: http://core.svn.wordpress.org/trunk@42719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-28 19:28:31 +00:00
Andrew Ozz
4fed9aa6bd
Privacy: add functionality for exporting personal data from comments.
...
Props allendav, xkon.
Fixes #43440 .
Built from https://develop.svn.wordpress.org/trunk@42888
git-svn-id: http://core.svn.wordpress.org/trunk@42718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-28 17:25:31 +00:00
Aaron Jorbin
80464d93bb
Bump grunt-patch-wordpress to 1.0.0
...
Adds the ability to do file mapping (see #43055 ), reformats all of the code to bring it inline with the current WordPress coding standards, and fixes a small number of bugs.
Props pento, netweb, boblinthorst, ireneyoast, omarreiss, herregroen, jorbin
Fixes #43646
Built from https://develop.svn.wordpress.org/trunk@42887
git-svn-id: http://core.svn.wordpress.org/trunk@42717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-28 16:24:32 +00:00
Sergey Biryukov
2f0f413aa5
Twenty Ten: Restore max-width
on .wp-caption
.
...
[42837] fixed the compatibility issue caused by [41724], returning the caption shortcode to the pre-4.9.0 behavior.
Reverts [42386].
Fixes #42604 .
Built from https://develop.svn.wordpress.org/trunk@42886
git-svn-id: http://core.svn.wordpress.org/trunk@42716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-28 01:51:29 +00:00
Sergey Biryukov
fa47925a9a
Twenty Seventeen: Bump version and update the changelog.
...
Props audrasjb.
Fixes #43572 .
Built from https://develop.svn.wordpress.org/trunk@42881
git-svn-id: http://core.svn.wordpress.org/trunk@42711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-27 21:06:30 +00:00
Sergey Biryukov
0e9549d424
Formatting: Permit use of text-transform
in safecss_filter_attr()
.
...
Add unit tests for `safecss_filter_attr()`.
Props birgire, juiiee8487, danielbachhuber.
Fixes #42729 .
Built from https://develop.svn.wordpress.org/trunk@42880
git-svn-id: http://core.svn.wordpress.org/trunk@42710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-27 00:54:34 +00:00
Sergey Biryukov
ff314fd156
Media: Pass EXIF data to the wp_read_image_metadata
filter.
...
Props desrosj.
Fixes #43624 .
Built from https://develop.svn.wordpress.org/trunk@42879
git-svn-id: http://core.svn.wordpress.org/trunk@42709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-25 20:45:29 +00:00
Sergey Biryukov
079cfd60a9
Media: In wp_read_image_metadata()
, rename $sourceImageType
variable to $image_type
to match coding standards.
...
See #43624 .
Built from https://develop.svn.wordpress.org/trunk@42878
git-svn-id: http://core.svn.wordpress.org/trunk@42708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-25 20:41:29 +00:00
John Blackbourn
bbcb4300a3
Docs: Correct and improve various inline documentation.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@42877
git-svn-id: http://core.svn.wordpress.org/trunk@42707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-25 19:35:29 +00:00
John Blackbourn
2361ca884f
Docs: Document more parameters and properties using typed array notation.
...
See #41756
Built from https://develop.svn.wordpress.org/trunk@42876
git-svn-id: http://core.svn.wordpress.org/trunk@42706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-25 19:33:31 +00:00
John Blackbourn
b13e73d05c
Docs: Document more parameters and properties using typed array notation.
...
See #41756
Built from https://develop.svn.wordpress.org/trunk@42875
git-svn-id: http://core.svn.wordpress.org/trunk@42705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-25 18:10:32 +00:00
Sergey Biryukov
0895f04705
Docs: Correct method reference in a comment for Bulk_Plugin_Upgrader_Skin::$plugin_info
.
...
See [42677] for `Bulk_Theme_Upgrader_Skin::$theme_info`.
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42873
git-svn-id: http://core.svn.wordpress.org/trunk@42703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-23 00:34:29 +00:00
John Blackbourn
18169f0ae1
Docs: Revert some sneaky debugging code.
...
See #41756
Built from https://develop.svn.wordpress.org/trunk@42872
git-svn-id: http://core.svn.wordpress.org/trunk@42702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-22 20:29:30 +00:00
John Blackbourn
1b5d6c6971
Docs: Document many more parameters and properties using typed array notation.
...
See #41756
Built from https://develop.svn.wordpress.org/trunk@42871
git-svn-id: http://core.svn.wordpress.org/trunk@42701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-22 20:27:32 +00:00
John Blackbourn
7f36bbbdf1
Docs: Document WP_Roles
properties with typed array notation.
...
Props stevenlinx
Fixes #38732
See #41756
Built from https://develop.svn.wordpress.org/trunk@42870
git-svn-id: http://core.svn.wordpress.org/trunk@42700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-22 18:56:33 +00:00
Jeremy Felt
89cb4caddc
Multisite: Return WP_Site
as expected in get_active_blog_for_user()
.
...
Previously it was possible for a standard object representing the site to be returned in some cases.
Fixes #38430 .
Built from https://develop.svn.wordpress.org/trunk@42866
git-svn-id: http://core.svn.wordpress.org/trunk@42696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 23:07:30 +00:00
Sergey Biryukov
61a0745df8
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.
Fixes #42724 . See #34539 .
Built from https://develop.svn.wordpress.org/trunk@42864
git-svn-id: http://core.svn.wordpress.org/trunk@42694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 22:44:31 +00:00
John Blackbourn
2ac3192a5a
Build/Test Tools: Implement assertNotWPError()
in appropriate places in the test suite.
...
Props birgire
Fixes #42065
Built from https://develop.svn.wordpress.org/trunk@42863
git-svn-id: http://core.svn.wordpress.org/trunk@42693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 22:35:32 +00:00
John Blackbourn
1e18087867
General: Instruct file editors not to trim trailing whitespace in markdown files.
...
Two trailing spaces in a markdown file indicates a line break.
Props netweb
Fixes #43104
Built from https://develop.svn.wordpress.org/trunk@42862
git-svn-id: http://core.svn.wordpress.org/trunk@42692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 22:15:31 +00:00
Sergey Biryukov
8a701e5b3f
Formatting: Avoid a PHP 7.2 warning in wp_kses_attr()
when one of $allowedtags
elements is an uncountable value.
...
Props andrei0x309, soulseekah, SergeyBiryukov.
Fixes #43312 .
Built from https://develop.svn.wordpress.org/trunk@42860
git-svn-id: http://core.svn.wordpress.org/trunk@42690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 21:35:31 +00:00
Jeremy Felt
b05cb5e5ed
Multisite: Use case-insensitive check on email domain whitelist.
...
Props greatislander.
Fixes #43148 .
Built from https://develop.svn.wordpress.org/trunk@42858
git-svn-id: http://core.svn.wordpress.org/trunk@42688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 19:07:31 +00:00
Andrea Fercia
d0e1b54105
Accessibility: Menus screen: Improve headings and instructions for better accessibility.
...
Props audrasjb, melchoyce, juliemoynat.
Fixes #43397 .
Built from https://develop.svn.wordpress.org/trunk@42857
git-svn-id: http://core.svn.wordpress.org/trunk@42687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-20 17:48:21 +00:00
Dominik Schilling
80c9ed8bfa
Users: Don't show roles dropdown on user-edit.php if current user cannot promote user.
...
Fixes #43580 .
Built from https://develop.svn.wordpress.org/trunk@42856
git-svn-id: http://core.svn.wordpress.org/trunk@42686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-19 20:56:32 +00:00
Dominik Schilling
61ba57abb7
Users: Use promote_users
for role updates in edit_user()
.
...
`edit_user()` can also update user roles but was still using the `edit_users` capability instead of the newer `promote_users` capability introduced in [14176].
This makes the role handling consistent with the bulk dropdown menu for role changes.
Props flixos90, johnjamesjacoby, ocean90.
Fixes #42564 .
Built from https://develop.svn.wordpress.org/trunk@42855
git-svn-id: http://core.svn.wordpress.org/trunk@42685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-19 20:29:34 +00:00
Dominik Schilling
6fd9d2edcf
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.
Props adamsilverstein, FPCSJames, ocean90, swissspidy.
Fixes #42948 , #43266 .
Built from https://develop.svn.wordpress.org/trunk@42852
git-svn-id: http://core.svn.wordpress.org/trunk@42682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 17:21:30 +00:00
Dominik Schilling
3138d89e1e
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.
Props adamsilverstein, ocean90, swissspidy.
Fixes #43265 .
Built from https://develop.svn.wordpress.org/trunk@42851
git-svn-id: http://core.svn.wordpress.org/trunk@42681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 17:04:30 +00:00
Dominik Schilling
aaf1fc64c4
Multisite: Use a numbered placeholder in sprintf()
for the site URL.
...
Fixes missing site domain in the link and a PHP warning.
Props Thomas Vitale, conner_bw.
See #41645 .
Fixes #43568 .
Built from https://develop.svn.wordpress.org/trunk@42844
git-svn-id: http://core.svn.wordpress.org/trunk@42674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 14:45:30 +00:00
Dominik Schilling
5c291d49de
Pinking shears.
...
See #41057 .
Built from https://develop.svn.wordpress.org/trunk@42843
git-svn-id: http://core.svn.wordpress.org/trunk@42673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 14:23:33 +00:00
Joe McGill
2cb76498ba
Update unit test following r42839.
...
This updates the expected version number for Hello Dolly in `Tests_Ajax_Update_Plugin::test_update_plugin` following [42839].
See #43555 .
Built from https://develop.svn.wordpress.org/trunk@42841
git-svn-id: http://core.svn.wordpress.org/trunk@42671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-17 20:57:30 +00:00
Joe McGill
0a02c87b48
Update Hello Dolly lyrics.
...
This updates the Hello Dolly plugin to remove lines which could be objectionable when shown in the admin out of context, and brings the lyrics more in line with Louis Armstrong's recording.
Props sebastienthivinfocom, birgire, audrasjb, joemcgill.
Fixes #43555 .
Built from https://develop.svn.wordpress.org/trunk@42839
git-svn-id: http://core.svn.wordpress.org/trunk@42669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-17 20:23:32 +00:00
Joe McGill
06ec96a7a4
Revert max-width styles on caption shortcodes.
...
This is a partial revert of [41724], so image captions include an
inline `width` style instead of `max-width`.
This returns the caption shortcode to the pre-4.9.0 behavior, while
retaining the extra unit test coverage added in [41724].
Fixes #43123 . See #33981 .
Built from https://develop.svn.wordpress.org/trunk@42837
git-svn-id: http://core.svn.wordpress.org/trunk@42667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-16 20:07:33 +00:00
Felix Arntz
176a289050
Multisite: Introduce metadata for sites.
...
A new global multisite table `wp_blogmeta` is added to the database schema, and a set of `*_site_meta()` API functions are introduced.
The implementation fails gracefully when the new table is not yet available, which may happen especially shortly after the core update, before the network has been upgraded to the new database schema. The presence of the table is detected once and stored as a global setting on the main network.
Core does not yet use site metadata, but there are several use-cases to be implemented or explored in the near future, and it allows plugins to extend sites with arbitrary data, which will come in particularly handy with the upcoming REST API endpoint for sites.
Props spacedmonkey, johnjamesjacoby, jeremyfelt, flixos90.
Fixes #37923 .
Built from https://develop.svn.wordpress.org/trunk@42836
git-svn-id: http://core.svn.wordpress.org/trunk@42666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-16 02:15:31 +00:00
Felix Arntz
eda5ab56af
Bootstrap: Load formatting.php
and meta.php
earlier in wp-settings.php
.
...
This change is necessary to enable multisite-specific metadata functionality during the multisite bootstrap process.
See #40948 .
Built from https://develop.svn.wordpress.org/trunk@42835
git-svn-id: http://core.svn.wordpress.org/trunk@42665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-16 02:01:33 +00:00
Felix Arntz
485984e82e
Multisite: Add missing group annotations to tests included in [42833].
...
This ensures tests are skipped correctly when not using multisite.
See #43506 .
Built from https://develop.svn.wordpress.org/trunk@42834
git-svn-id: http://core.svn.wordpress.org/trunk@42664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-13 17:57:30 +00:00
Felix Arntz
57fd97017e
Multisite: Ensure the {$network_id}:notoptions
array is set in cache in get_network_option()
.
...
Prior to this change, the `{$network_id}:notoptions` cache would only be fetched, but not set, unless the actual database lookup would be unsuccessful. This enhancement slightly improves performance by preventing unnecessary external object cache lookups if one is used.
Fixes #43506 .
Built from https://develop.svn.wordpress.org/trunk@42833
git-svn-id: http://core.svn.wordpress.org/trunk@42663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-13 15:37:33 +00:00
Felix Arntz
ed1df81bba
General: Introduce dashboard widget to inform administrators about outdated PHP versions.
...
This new dashboard widget is shown on WordPress sites which are powered by a PHP version which WordPress considers outdated, in order to inform site owners about the resulting problems and to explain how to upgrade to a supported version. An education page for that purpose has been previously created that the widget links to. The link is translatable so that localized versions of the page can be referred to as they become available.
The nag follows the example of the Browse Happy dashboard widget and is only visible for administrators, or network administrators when using multisite. To determine whether it needs to be displayed, a new wordpress.org API introduced prior is called that handles the version logic in a centralized location.
Props flixos90, hedgefield, schlessera.
Fixes #41191 .
Built from https://develop.svn.wordpress.org/trunk@42832
git-svn-id: http://core.svn.wordpress.org/trunk@42662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-12 16:43:31 +00:00
John Blackbourn
d7025e7787
Security: Loosen the admin referrer policy header value to allow the referring host to be sent from the admin area in all cases.
...
This allows referrer-restricted content from third parties (such as images and fonts) to continue working in the admin area.
Props aranwer104, qcmiao
Fixes #43285
Built from https://develop.svn.wordpress.org/trunk@42830
git-svn-id: http://core.svn.wordpress.org/trunk@42660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-12 10:57:35 +00:00
Dion Hulse
42b03122b5
Plugins: Add support for plugins having an active_installs
value larger than 1 million.
...
WordPress.org currently supports up to 5 million, and with the growth of WordPress, it's expected that that upper bound will increase in the future.
Fixes #43193 .
Built from https://develop.svn.wordpress.org/trunk@42829
git-svn-id: http://core.svn.wordpress.org/trunk@42659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-12 01:57:31 +00:00
Sergey Biryukov
81500e50ef
Link Template: Apply get_{$adjacent}_post_excluded_terms
filter to an empty excluded_terms
parameter as well.
...
Props soulseekah, zottto.
Fixes #43521 .
Built from https://develop.svn.wordpress.org/trunk@42828
git-svn-id: http://core.svn.wordpress.org/trunk@42658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-11 17:32:31 +00:00
Sergey Biryukov
4848a09b35
I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.
...
Add missing translator comments in `WP_Theme_Install_List_Table` and `wp_notify_postauthor()`.
Add missing commas in some translator comments.
Fixes #43523 .
Built from https://develop.svn.wordpress.org/trunk@42827
git-svn-id: http://core.svn.wordpress.org/trunk@42657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-11 16:44:34 +00:00
Sergey Biryukov
fab939595d
Docs: Fix typo in a comment in WP_Community_Events::trim_events()
.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42826
git-svn-id: http://core.svn.wordpress.org/trunk@42656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-11 10:35:31 +00:00
Sergey Biryukov
15e969be8d
Docs: Add missing brace in auto_update_{$type}
filter DocBlock.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42825
git-svn-id: http://core.svn.wordpress.org/trunk@42655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-11 10:30:33 +00:00
Sergey Biryukov
8bab745586
General: In wp_debug_backtrace_summary()
, check if $call['args']
is defined to avoid a PHP notice.
...
Props paulschreiber.
Fixes #31215 .
Built from https://develop.svn.wordpress.org/trunk@42824
git-svn-id: http://core.svn.wordpress.org/trunk@42654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-10 17:31:32 +00:00
Andrew Ozz
ba7b8cd8a0
Accessibility improvements for the Privacy Tools screen.
...
Propr afercia.
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@42823
git-svn-id: http://core.svn.wordpress.org/trunk@42653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-10 14:01:31 +00:00
Sergey Biryukov
f700ac6075
Docs: Use WP_Term
instead of generic object
type for the $tag
parameter in wp-admin/edit-tag-form.php
hook docs.
...
Props xhezairi, ocean90.
Fixes #43507 .
Built from https://develop.svn.wordpress.org/trunk@42822
git-svn-id: http://core.svn.wordpress.org/trunk@42652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-10 02:01:29 +00:00
Sergey Biryukov
4e9c3f916f
Docs: Fix typos in _wp_emoji_list()
description.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42821
git-svn-id: http://core.svn.wordpress.org/trunk@42651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-10 01:50:30 +00:00
Sergey Biryukov
0b799bd6a7
General: In wp_debug_backtrace_summary()
, capture hook name for do_action_ref_array()
and apply_filters_ref_array()
as well.
...
Props Rarst.
Fixes #43488 .
Built from https://develop.svn.wordpress.org/trunk@42820
git-svn-id: http://core.svn.wordpress.org/trunk@42650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-10 00:05:31 +00:00
Sergey Biryukov
c46a518330
Tests: Skip symlinked theme file tests if symlink()
is not available, e.g. in PHP 5.2.x on Windows.
...
See #43508 .
Built from https://develop.svn.wordpress.org/trunk@42819
git-svn-id: http://core.svn.wordpress.org/trunk@42649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 17:48:30 +00:00
Adam Silverstein
e70caa19a1
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.
Fixes #41242 .
Built from https://develop.svn.wordpress.org/trunk@42818
git-svn-id: http://core.svn.wordpress.org/trunk@42648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 17:27:31 +00:00
Adam Silverstein
6751be3561
Customizer menus: correct oversized viewport after dragging menu items.
...
Fix an issue where the screen viewport resized to an oversized state on mobile devices after moving sub-menus.
Props kwonye.
Fixes #36884 .
Built from https://develop.svn.wordpress.org/trunk@42817
git-svn-id: http://core.svn.wordpress.org/trunk@42647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 17:06:30 +00:00
John Blackbourn
d1d60bb22c
Themes: Revert [42788] as it breaks a lot of things.
...
See #43228
Built from https://develop.svn.wordpress.org/trunk@42816
git-svn-id: http://core.svn.wordpress.org/trunk@42646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 17:00:31 +00:00
Andrew Ozz
63dd79d908
Respect the commenter decision when they have checked the checkbox to consent to cookies, and keep it checked when they reload the page or post another comment.
...
See #43436 .
Built from https://develop.svn.wordpress.org/trunk@42815
git-svn-id: http://core.svn.wordpress.org/trunk@42645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 15:57:30 +00:00
Andrew Ozz
b93dfd3571
Add Privacy Tools admin page under the Tools menu.
...
Props allendav, xkon, azaozz.
See #43435 .
Built from https://develop.svn.wordpress.org/trunk@42814
git-svn-id: http://core.svn.wordpress.org/trunk@42644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 15:04:33 +00:00
Sergey Biryukov
051dd178b3
Tests: Skip symlinked theme file tests if the links could not be created.
...
Fixes #43508 .
Built from https://develop.svn.wordpress.org/trunk@42812
git-svn-id: http://core.svn.wordpress.org/trunk@42642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 01:10:31 +00:00
Andrea Fercia
127ecc530c
Accessibility: Underline the links in the Plugins descriptions and update notices.
...
Links within blocks and lines of text should always be underlined.
Props Travel_girl, chetan200891, Shital Patel.
Fixes #42647 .
Built from https://develop.svn.wordpress.org/trunk@42810
git-svn-id: http://core.svn.wordpress.org/trunk@42640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 23:20:30 +00:00
Sergey Biryukov
eaf4f346fd
Docs: Improve documentation for meta capability filters.
...
Remove self-references, correct parameter names and descriptions.
Props milana_cap, ocean90, SergeyBiryukov.
Fixes #43504 .
Built from https://develop.svn.wordpress.org/trunk@42809
git-svn-id: http://core.svn.wordpress.org/trunk@42639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 23:19:30 +00:00
Andrea Fercia
320a05019a
Accessibility: Themes: use aria-current
for the Walker_Nav_Menu
current link.
...
The `aria-current` attribute is a simple, effective way to help assistive
technologies users orientate themselves within a list of items. Continues the
introduction in core of `aria-current` after [42440], [41683], [41359], and [41371].
Props williampatton, chetan200891, sami.keijonen.
Fixes #43191 .
Built from https://develop.svn.wordpress.org/trunk@42808
git-svn-id: http://core.svn.wordpress.org/trunk@42638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 21:31:30 +00:00
Andrea Fercia
48077799d9
Accessibility: Insert Link modal: Improve keyboard interaction.
...
Avoids to change the selected link when using the Shift and Up/Down arrow keys
to select text in the form fields.
Fixes #43253 .
Built from https://develop.svn.wordpress.org/trunk@42807
git-svn-id: http://core.svn.wordpress.org/trunk@42637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 20:58:30 +00:00
Sergey Biryukov
996efe8f6e
Filesystem API: Avoid an infinite loop in wp_mkdir_p()
when trying to determine the parent folder with open_basedir
restriction in effect.
...
Props soulseekah, 1265578519-1.
Fixes #43417 .
Built from https://develop.svn.wordpress.org/trunk@42801
git-svn-id: http://core.svn.wordpress.org/trunk@42631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 19:32:30 +00:00
Sergey Biryukov
c1897645a2
General: In wp_debug_backtrace_summary()
, normalize paths before replacement for better cross–platform compatibility.
...
Props Rarst.
Fixes #43501 .
Built from https://develop.svn.wordpress.org/trunk@42800
git-svn-id: http://core.svn.wordpress.org/trunk@42630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 17:08:31 +00:00
Sergey Biryukov
902232ffec
Tests: Correct assertion in Tests_WP_Customize_Setting::test_constructor_with_args()
.
...
Props jipmoors.
See #30988 , #43218 .
Built from https://develop.svn.wordpress.org/trunk@42799
git-svn-id: http://core.svn.wordpress.org/trunk@42629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 16:38:30 +00:00
Sergey Biryukov
e2707d57f9
Docs: Improve JSDoc for wp-includes/js/media/controllers/gallery-add.js
.
...
Props boblinthorst, bramheijmink, manuelaugustin, ireneyoast, igorsch, nataliashitova.
Fixes #43500 .
Built from https://develop.svn.wordpress.org/trunk@42798
git-svn-id: http://core.svn.wordpress.org/trunk@42628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 16:25:34 +00:00
Sergey Biryukov
fdc4f68678
Docs: Remove copy/pasted default value description for $type
in WP_Customize_Manager::add_setting()
.
...
Props DannyCooper.
Fixes #43497 .
Built from https://develop.svn.wordpress.org/trunk@42797
git-svn-id: http://core.svn.wordpress.org/trunk@42627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 13:06:33 +00:00
Sergey Biryukov
ef33f565b1
Docs: Improve documentation for add_meta_boxes
and do_meta_boxes
actions.
...
Props danieltj, johnbillion, SergeyBiryukov.
Fixes #43229 .
Built from https://develop.svn.wordpress.org/trunk@42796
git-svn-id: http://core.svn.wordpress.org/trunk@42626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 03:57:31 +00:00
Sergey Biryukov
24f43065b9
Docs: Document globals in wp-admin/revision.php
as @global
instead of @param
.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42795
git-svn-id: http://core.svn.wordpress.org/trunk@42625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-08 03:53:34 +00:00
Andrea Fercia
ffedf3d752
Accessibility: Widgets: Make the "Available Widgets" section operable with a keyboard.
...
For a number of years, the "Available Widgets" section has been off-limits for
keyboard users. Now it can be used also with the keyboard. This change introduces
also some improvements for assistive technologies.
- makes the widget toggles focusable and adds an `aria-expanded` attribute to indicate their state
- improves the toggles labelling to clarify context (add/edit)
- changes the controls to choose a sidebar from list items to buttons
- adds an `aria-label` attribute to the buttons to clarify their purpose
- adds an `aria-pressed` attribute to the buttons to indicate which one is selected
- improves color contrast of the selected button
- uses a `wp.a11y.speak()` message to announce to screen reader users when a widget has been added to a sidebar
- moves focus back to the toggle button when closing a widget
See #40677 .
Built from https://develop.svn.wordpress.org/trunk@42794
git-svn-id: http://core.svn.wordpress.org/trunk@42624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-07 22:27:31 +00:00
Andrea Fercia
e34999f4aa
Accessibility: Networks and Sites: mark the New Site required form fields as required.
...
Also, adds an `aria-describedby` attribute to associate the Admin Email field with its description.
Props dipesh.kakadiya, jackreichert, rianrietveld.
Fixes #37331 .
Built from https://develop.svn.wordpress.org/trunk@42793
git-svn-id: http://core.svn.wordpress.org/trunk@42623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-07 19:41:33 +00:00
Mike Schroder
51b0a3cd28
Media: Correctly allow changing PDF thumbnail crop value.
...
Corrects logic that keeping plugins from setting crop value of intermediate image sizes for rendered PDFs.
Adds test.
Props leemon, SergeyBiryukov, chetan200891, birgire.
Fixes #43226 .
Built from https://develop.svn.wordpress.org/trunk@42792
git-svn-id: http://core.svn.wordpress.org/trunk@42622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-07 01:19:31 +00:00
Andrew Ozz
791b11bc3f
Add a method to confirm user requests by email. First run.
...
Props mikejolley.
See #43443 .
Built from https://develop.svn.wordpress.org/trunk@42791
git-svn-id: http://core.svn.wordpress.org/trunk@42621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-06 23:47:30 +00:00
Andrea Fercia
6a4b2a022a
Accessibility: Make the Widgets screen "Enable accessibility mode" link more discoverable.
...
For a number of years, the link to the Widgets screen "Accessibility mode" lived
in the Screen Options panel, hidden by default. Many users, including assistive
technologies users, weren't able to find it or even aware it existed. By bringing
the link in the main screen, visible by default, this change makes the
"Accessibility mode" easily discoverable for everyone.
Props chetan200891, antonioeatgoat.
Fixes #42778 .
Built from https://develop.svn.wordpress.org/trunk@42790
git-svn-id: http://core.svn.wordpress.org/trunk@42620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-06 17:21:33 +00:00
John Blackbourn
6c09e79cc5
Database: Add the query start time to logged query data.
...
This allows debugging plugins to plot the time at which queries were executed.
Props Rarst for initial patch.
Fixes #43315
Built from https://develop.svn.wordpress.org/trunk@42789
git-svn-id: http://core.svn.wordpress.org/trunk@42619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 22:54:35 +00:00
John Blackbourn
ea6360b47c
Themes: Ensure the theme roots cache is cleared when registering a theme directory.
...
Props soulseekah, johnbillion
Fixes #43228
Built from https://develop.svn.wordpress.org/trunk@42788
git-svn-id: http://core.svn.wordpress.org/trunk@42618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 22:14:30 +00:00
John Blackbourn
c9b07e6411
Docs: Standardise and correct documentation relating to parameters which accept plugin names.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@42787
git-svn-id: http://core.svn.wordpress.org/trunk@42617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 21:50:31 +00:00
John Blackbourn
087b52dced
Upgrade/Install: Fix the format of the upgrader_process_complete
actions after [42343].
...
More info: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1323
See #41057 , #42505
Built from https://develop.svn.wordpress.org/trunk@42786
git-svn-id: http://core.svn.wordpress.org/trunk@42616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 21:44:30 +00:00
Andrea Fercia
9842bd6d24
Accessibility: Change the "Show / Hide dismissed updates" link to a button.
...
For better accessibility and semantics, user interface controls that perform an
action should be buttons. Links should exclusively be used for navigation.
Also, adds an `aria-expanded` attribute to communicate the expandable panel state
and improves the buttons spacing.
Props Cheffheid, audrasjb, afercia.
Fixes #38674 .
Built from https://develop.svn.wordpress.org/trunk@42785
git-svn-id: http://core.svn.wordpress.org/trunk@42615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 15:50:30 +00:00
Andrea Fercia
64634898c2
Accessibility: Change the media upload "Dismiss error" link to a button.
...
For better accessibility and semantics, user interface controls that perform an
action should be buttons. Links should exclusively be used for navigation.
Props Cheffheid, audrasjb.
Fixes #38671 .
Built from https://develop.svn.wordpress.org/trunk@42784
git-svn-id: http://core.svn.wordpress.org/trunk@42614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 15:33:33 +00:00
Sergey Biryukov
084b48e1ba
Help/About: Adjust capability checks formatting in help text on Dashboard screen for readability and consistency with similar checks in other files.
...
See #43472 .
Built from https://develop.svn.wordpress.org/trunk@42783
git-svn-id: http://core.svn.wordpress.org/trunk@42613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 03:32:30 +00:00
Sergey Biryukov
24f13abf63
Help/About: Remove popular plugins feed reference from help text on Dashboard screen, no longer relevant since [40607].
...
Props denisco.
See #43472 .
Built from https://develop.svn.wordpress.org/trunk@42782
git-svn-id: http://core.svn.wordpress.org/trunk@42612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 03:17:31 +00:00
Sergey Biryukov
31a3083c28
Help/About: Update "WordPress News" widget references in help text and inline documentation.
...
Props monikarao, denisco.
Fixes #43400 , #43472 .
Built from https://develop.svn.wordpress.org/trunk@42781
git-svn-id: http://core.svn.wordpress.org/trunk@42611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 03:04:31 +00:00
Sergey Biryukov
5596017878
Media: Recognize .ico
files as displayable images on PHP 5.3+ and allow attachment meta data to be generated for them.
...
Props remyvv, Guido07111975.
Fixes #43458 .
Built from https://develop.svn.wordpress.org/trunk@42780
git-svn-id: http://core.svn.wordpress.org/trunk@42610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 01:03:31 +00:00
Sergey Biryukov
e451dfac9e
Help/About: Correct the number of most recent drafts in help text on Dashboard screen.
...
Props denisco.
Fixes #43471 .
Built from https://develop.svn.wordpress.org/trunk@42779
git-svn-id: http://core.svn.wordpress.org/trunk@42609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-05 00:24:30 +00:00
Sergey Biryukov
3385d5b2de
Docs: Expand delete_theme()
return value, fix typo in delete_plugins()
return value.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42778
git-svn-id: http://core.svn.wordpress.org/trunk@42608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 22:07:29 +00:00
Sergey Biryukov
58592b64dc
Docs: Use consistent description for $wp_filesystem
global.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42777
git-svn-id: http://core.svn.wordpress.org/trunk@42607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 21:58:30 +00:00
Sergey Biryukov
179bec1306
Docs: Clarify return values and improve DocBlock formatting for verify_file_md5()
, unzip_file()
, _unzip_file_ziparchive()
, _unzip_file_pclzip()
, copy_dir()
, WP_Filesystem()
.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42776
git-svn-id: http://core.svn.wordpress.org/trunk@42606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 21:43:30 +00:00
Sergey Biryukov
3c8ae81018
Docs: Clarify download_url()
return value, improve DocBlock formatting.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42775
git-svn-id: http://core.svn.wordpress.org/trunk@42605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 19:50:31 +00:00
Sergey Biryukov
7b7ca428f3
Docs: Clarify that wp_update_user()
accepts an array as $userdata
argument.
...
Props nextendweb.
Fixes #43051 .
Built from https://develop.svn.wordpress.org/trunk@42774
git-svn-id: http://core.svn.wordpress.org/trunk@42604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 18:12:31 +00:00
Sergey Biryukov
86c3c7e1c9
Filesystem API: Allow download_url()
to return the response code and body on error as an additional WP_Error
object data.
...
The error response body size is limited to 1 KB by default to avoid taking up too much memory. The size can be increased using `download_url_error_max_body_size` filter.
Props soulseekah, campusboy1987, mihdan, SergeyBiryukov.
Fixes #43329 .
Built from https://develop.svn.wordpress.org/trunk@42773
git-svn-id: http://core.svn.wordpress.org/trunk@42603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 17:14:31 +00:00
Andrew Ozz
8ae59374f3
Add a checkbox to the comment form so logged out users can opt-out of commenter cookies.
...
Props lakenh, xkon, birgire, azaozz.
See #43436 .
Built from https://develop.svn.wordpress.org/trunk@42772
git-svn-id: http://core.svn.wordpress.org/trunk@42602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-04 16:41:33 +00:00
Dominik Schilling
d950c75307
Import: Avoid counting an uncountable type when reading arguments passed to a script.
...
Props josephscott.
Fixes #42898 .
Built from https://develop.svn.wordpress.org/trunk@42771
git-svn-id: http://core.svn.wordpress.org/trunk@42601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-02 17:17:31 +00:00
Andrew Ozz
de8936588c
Add pre-save content filter to make target=_blank always secure.
...
Props notnownikki, iseulde, azaozz
Fixes #43187
Built from https://develop.svn.wordpress.org/trunk@42770
git-svn-id: http://core.svn.wordpress.org/trunk@42600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-02 14:42:31 +00:00
Dominik Schilling
74cb5936fc
Docs: Remove trailing whitespace in wp-includes/post.php
.
...
Built from https://develop.svn.wordpress.org/trunk@42769
git-svn-id: http://core.svn.wordpress.org/trunk@42599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-02 10:02:33 +00:00
Boone Gorges
35ad9e9efc
Allow LIKE
queries against the 'key' value in meta queries.
...
The new `compare_key=LIKE` parameter works in conjunction with `key` in a
similar way to the `compare=LIKE` and `value`: by doing a "compares" `LIKE`
query. This allows developers to do partial matches against keys when
doing meta queries.
Props mariovalney, chasewg.
Fixes #42409 .
Built from https://develop.svn.wordpress.org/trunk@42768
git-svn-id: http://core.svn.wordpress.org/trunk@42598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-01 04:03:33 +00:00
Andrea Fercia
d2d64f13c7
Accessibility: Change the comments "Quick Edit" and "Reply" links to buttons.
...
For better accessibility and semantics, user interface controls that perform an
action should be buttons. Links should exclusively be used for navigation.
Props Cheffeid, audrasjb, afercia.
See #43382 , #38677 .
Fixes #43376 .
Built from https://develop.svn.wordpress.org/trunk@42767
git-svn-id: http://core.svn.wordpress.org/trunk@42597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-28 22:36:34 +00:00
Sergey Biryukov
e786f9eb91
Docs: Mark WP_Http::_dispatch_request()
as deprecated. It's no longer used since [37428].
...
Fixes #43414 .
Built from https://develop.svn.wordpress.org/trunk@42766
git-svn-id: http://core.svn.wordpress.org/trunk@42596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-28 03:48:30 +00:00
Sergey Biryukov
b0ddd7ca43
Docs: Add description for register_admin_color_schemes()
.
...
Props terriann, danieltj.
Fixes #42779 .
Built from https://develop.svn.wordpress.org/trunk@42765
git-svn-id: http://core.svn.wordpress.org/trunk@42595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-28 03:28:31 +00:00
Sergey Biryukov
7d8809c98b
XML-RPC: Unify permission error messages in wp_xmlrpc_server
.
...
Props ramiy.
Fixes #42266 .
Built from https://develop.svn.wordpress.org/trunk@42764
git-svn-id: http://core.svn.wordpress.org/trunk@42594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-28 03:19:31 +00:00
iandunn
acfced54f0
External Libraries: Test for MEjs files in src
instead of build
.
...
The `build` task doesn't get run during TravisCI jobs, so the `build` folder doesn't exist in that context. Because of that, the test added in r42762 was failling.
Checking for the files in `src` instead achieves the same goal as that commit, but should pass in Travis.
See #43101
See https://wordpress.slack.com/archives/C02RQBWTW/p1519742993000615
Built from https://develop.svn.wordpress.org/trunk@42763
git-svn-id: http://core.svn.wordpress.org/trunk@42593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-28 00:26:31 +00:00
iandunn
f71c4f38c3
External Libraries: Test that MediaElement SWF files remain deleted.
...
The files were removed from Core in r42462 because they're no longer necessary, and have a history of security issues. They remain upstream, though, so this test makes it explicitly clear that they should not be added back in the future without careful consideration and discussion with the Security team.
`Tests_Admin_IncludesUpdateCore::test_new_files_are_not_in_old_files_array_compiled()` would already catch files with the exact same name, but this test will also catch files with new names, just to be extra cautious.
Props iandunn, ocean90, SergeyBiryukov
Fixes 43101
Built from https://develop.svn.wordpress.org/trunk@42762
git-svn-id: http://core.svn.wordpress.org/trunk@42592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-27 14:38:33 +00:00
Sergey Biryukov
0e802a627d
General: Introduce WP_Error::has_errors()
method and use it where appropriate.
...
Props robdxw, DrewAPicture, SergeyBiryukov.
Fixes #42742 .
Built from https://develop.svn.wordpress.org/trunk@42761
git-svn-id: http://core.svn.wordpress.org/trunk@42591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-27 02:31:31 +00:00
iandunn
71f206839d
Build/Test Tools: Add watch:phpunit
task.
...
This allow PHPUnit test groups to run automatically when files are changed, rather than having to be ran manually throughout the development process. This creates a smoother developer experience, and a tighter feedback loop.
Props iandunn, netweb, pento
Fixes #42282
Built from https://develop.svn.wordpress.org/trunk@42760
git-svn-id: http://core.svn.wordpress.org/trunk@42590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-27 00:32:33 +00:00
Sergey Biryukov
669f8bb750
Media: Remove unnecessary aria-required
attribute from legacy (pre-3.5.0) media functions, added in [7888].
...
At the time, having both `required` and `aria-required` meant a wider range of support for browsers and assistive technology. Today, it's safe to use just `required`.
Props shital-patel, afercia, audrasjb.
Fixes #43415 .
Built from https://develop.svn.wordpress.org/trunk@42759
git-svn-id: http://core.svn.wordpress.org/trunk@42589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 23:10:31 +00:00
Sergey Biryukov
d3b2daf490
Comments: Remove unnecessary aria-required
attribute from comment_form()
, added with the function in [12810].
...
At the time, having both `required` and `aria-required` meant a wider range of support for browsers and assistive technology. Today, it's safe to use just `required`.
Props lakenh, afercia, davidakennedy, henry.wright.
Fixes #39045 .
Built from https://develop.svn.wordpress.org/trunk@42758
git-svn-id: http://core.svn.wordpress.org/trunk@42588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 20:50:30 +00:00
Dominik Schilling
666e203f31
Administration: Remove unnecessary capitalization when referencing to plugin/theme editors.
...
Fixes #43072 .
Built from https://develop.svn.wordpress.org/trunk@42757
git-svn-id: http://core.svn.wordpress.org/trunk@42587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 19:35:30 +00:00
Sergey Biryukov
a018cdd4e3
Docs: Add missing @since
entries for functions in wp-admin/image-edit.php
.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42756
git-svn-id: http://core.svn.wordpress.org/trunk@42586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 18:38:31 +00:00
Sergey Biryukov
9cb07ec40e
Taxonomy: Make the "Format" taxonomy name plural, for consistency with other taxonomies.
...
Props afercia, danieltj.
Fixes #43370 .
Built from https://develop.svn.wordpress.org/trunk@42755
git-svn-id: http://core.svn.wordpress.org/trunk@42585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 18:22:31 +00:00
Sergey Biryukov
3812402cc7
Docs: Fix typo in wp.customize.selectiveRefresh.placements()
description.
...
Props Nikschavan.
Fixes #43418 .
Built from https://develop.svn.wordpress.org/trunk@42754
git-svn-id: http://core.svn.wordpress.org/trunk@42584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 17:52:31 +00:00
Pascal Birchler
5cde2018ea
Docs: Remove erroneous period in the description for esc_html__()
.
...
Props danieltj.
Fixes #43419 .
Built from https://develop.svn.wordpress.org/trunk@42753
git-svn-id: http://core.svn.wordpress.org/trunk@42583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-26 15:57:32 +00:00
Sergey Biryukov
9226691b3c
Docs: Remove erroneous @static
notation from WP_Tax_Query::get_sql()
, added in [32627].
...
The method was never used as static.
Props birgire.
See #42803 .
Built from https://develop.svn.wordpress.org/trunk@42752
git-svn-id: http://core.svn.wordpress.org/trunk@42582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 21:45:30 +00:00
Sergey Biryukov
0b45a1e5fa
Docs: Remove erroneous @static
notation from WP_Http::_dispatch_request()
, added in [32650].
...
The method was never user as static.
Props birgire.
See #42803 .
Built from https://develop.svn.wordpress.org/trunk@42751
git-svn-id: http://core.svn.wordpress.org/trunk@42581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 21:35:30 +00:00
Sergey Biryukov
bd9cdde1eb
Docs: Remove duplicated DocBlock for http_response
hook in WP_Http::_dispatch_request()
.
...
The filter is already documented in `WP_Http::request()`.
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42750
git-svn-id: http://core.svn.wordpress.org/trunk@42580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 21:32:30 +00:00
Sergey Biryukov
510feac5bb
Twenty Fourteen: Remove redundant @access
and @static
notations from classes.
...
Props birgire.
See #41452 , #42803 , #42505 .
Built from https://develop.svn.wordpress.org/trunk@42749
git-svn-id: http://core.svn.wordpress.org/trunk@42579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 20:49:30 +00:00
Sergey Biryukov
c3738e9617
Docs: Remove @access
notation from WP_Taxonomy::$meta_box_sanitize_cb
.
...
See #42505 , #41452 .
Built from https://develop.svn.wordpress.org/trunk@42748
git-svn-id: http://core.svn.wordpress.org/trunk@42578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 20:38:30 +00:00
Sergey Biryukov
b026fde152
Docs: Remove @static
notations from property DocBlocks in wp-admin/*
and wp-includes/*
classes.
...
This tag has been used in the past, but should no longer be used. Just using the `static` keyword in code is enough for PhpDocumentor on PHP5+ to recognize static variables and methods, and PhpDocumentor will mark them as static.
Props birgire.
See #42803 .
Built from https://develop.svn.wordpress.org/trunk@42747
git-svn-id: http://core.svn.wordpress.org/trunk@42577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 20:32:30 +00:00
Sergey Biryukov
08227812a0
Docs: Remove @static
notations from method DocBlocks in wp-includes/*
classes.
...
This tag has been used in the past, but should no longer be used. Just using the `static` keyword in code is enough for PhpDocumentor on PHP5+ to recognize static variables and methods, and PhpDocumentor will mark them as static.
Props birgire.
See #42803 .
Built from https://develop.svn.wordpress.org/trunk@42746
git-svn-id: http://core.svn.wordpress.org/trunk@42576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 20:22:30 +00:00
Sergey Biryukov
0fea564b7d
Docs: Remove @static
notations from method DocBlocks in wp-admin/*
classes.
...
This tag has been used in the past, but should no longer be used. Just using the `static` keyword in code is enough for PhpDocumentor on PHP5+ to recognize static variables and methods, and PhpDocumentor will mark them as static.
Props birgire.
See #42803 .
Built from https://develop.svn.wordpress.org/trunk@42745
git-svn-id: http://core.svn.wordpress.org/trunk@42575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 20:06:30 +00:00
Adam Silverstein
de6906a045
Customizer: in menus, reset results when closing the 'add items' panel.
...
Trigger a keyup event when clearing the search field in response to closing the add item panel. The keyup event triggers a search and resets the results. Previously, the search field was cleared while the potentially blank search results were left in place making it impossible to select new menu items.
Props Blair jersyer, aranwer104, afercia.
Fixes #43333 .
Built from https://develop.svn.wordpress.org/trunk@42744
git-svn-id: http://core.svn.wordpress.org/trunk@42574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 18:48:29 +00:00
Sergey Biryukov
b34b1ee061
Tests: Correct a "false positive" assertion in test_media_handle_upload_ignores_page_parent_for_directory_date()
.
...
Props birgire.
Fixes #42736 .
Built from https://develop.svn.wordpress.org/trunk@42743
git-svn-id: http://core.svn.wordpress.org/trunk@42573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 18:47:30 +00:00
Sergey Biryukov
61e8101442
Tests: Avoid hardcoded domain name in test_media_handle_upload_uses_post_parent_for_directory_date()
.
...
Props birgire.
See #42736 .
Built from https://develop.svn.wordpress.org/trunk@42742
git-svn-id: http://core.svn.wordpress.org/trunk@42572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 18:43:30 +00:00
Adam Silverstein
89c9e27fd1
Unit Tests: add a DIR_TESTROOT constant to avoid relative paths.
...
Fix an issue that prevents tests from running correctly when run outside their normal context.
Props PressLabs, johnbillion.
Fixes #40071 .
Built from https://develop.svn.wordpress.org/trunk@42741
git-svn-id: http://core.svn.wordpress.org/trunk@42571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 18:07:31 +00:00
Adam Silverstein
a299c5c344
Fix eshint error since r42739.
...
Remove a trailing comma in [42739] that was throing a jshint error.
Built from https://develop.svn.wordpress.org/trunk@42740
git-svn-id: http://core.svn.wordpress.org/trunk@42570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 16:49:30 +00:00
Adam Silverstein
da89d20c39
Media: grid view - correct placeholder positioning during uploads.
...
Preventing contextually created attachments from being added to the grid collection in Attachments.validator. Remove the previous filtering introduced in [41937] which caused the placement issue.
Props lancewillett, Junaidkbr, designsimply, joemcgill.
Fixes #42968 .
Built from https://develop.svn.wordpress.org/trunk@42739
git-svn-id: http://core.svn.wordpress.org/trunk@42569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 16:41:31 +00:00
Sergey Biryukov
4d47bfce41
Coding Standards: Fix code indent in unescape_invalid_shortcodes()
.
...
Props joelcj91, GaryJ.
Fixes #43346 .
Built from https://develop.svn.wordpress.org/trunk@42738
git-svn-id: http://core.svn.wordpress.org/trunk@42568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 16:36:30 +00:00
Adam Silverstein
505c2ddb61
Taxonomy: restore TagSearch unit tests and correct deprecated version string.
...
Reverts unit test removal, instead changing them to expect the function to be deprecated.
Correct the version the ajax callback was deprecated.
Amends [42614].
Props dlh, ocean90.
Fixes #38922 .
Built from https://develop.svn.wordpress.org/trunk@42737
git-svn-id: http://core.svn.wordpress.org/trunk@42567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 16:28:30 +00:00
Sergey Biryukov
395667f916
Comments: After [42703], make sure $args['type']
in paginate_comments_links()
is always defined.
...
Props anantajitjg.
Fixes #43299 .
Built from https://develop.svn.wordpress.org/trunk@42736
git-svn-id: http://core.svn.wordpress.org/trunk@42566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 16:08:30 +00:00
Sergey Biryukov
35d5163d66
Docs: Correct description for WP_User::get_role_caps()
.
...
Props thomaswm.
Fixes #43410 .
Built from https://develop.svn.wordpress.org/trunk@42735
git-svn-id: http://core.svn.wordpress.org/trunk@42565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 15:39:30 +00:00
Sergey Biryukov
b6229650e0
Themes: Pre-translate theme names on Themes screen before sorting the array, to improve performance and avoid a warning in PHP 5.x.
...
Props bobbingwide, sebastian.pisula.
Fixes #34565 .
Built from https://develop.svn.wordpress.org/trunk@42734
git-svn-id: http://core.svn.wordpress.org/trunk@42564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 13:18:30 +00:00
Sergey Biryukov
b12620e798
Build/Test Tools: Remove vendor
file name entry from .gitignore
.
...
Props netweb.
Fixes #43411 .
Built from https://develop.svn.wordpress.org/trunk@42733
git-svn-id: http://core.svn.wordpress.org/trunk@42563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-25 11:30:32 +00:00
Sergey Biryukov
0e39cef343
Menus: When checking if a Custom Link matches the current URL to add the current-menu-item
class, check for decoded URL as well.
...
Props soulseekah, campusboy1987.
Fixes #43401 .
Built from https://develop.svn.wordpress.org/trunk@42732
git-svn-id: http://core.svn.wordpress.org/trunk@42562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-24 13:44:31 +00:00
Sergey Biryukov
fc5617e7fe
Administration: Use HTTPS for dashboard_primary_feed
URL.
...
`dashboard_secondary_feed` is already using HTTPS since [29787].
Props iandunn.
Fixes #40416 .
Built from https://develop.svn.wordpress.org/trunk@42731
git-svn-id: http://core.svn.wordpress.org/trunk@42561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-24 09:30:33 +00:00
Gary Pendergast
cf49eacd62
REST API: Translate the taxonomy visibility description strings.
...
This was missed in [42729].
Props TimothyBlynJacobs.
Fixes #42707 .
Built from https://develop.svn.wordpress.org/trunk@42730
git-svn-id: http://core.svn.wordpress.org/trunk@42560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-22 00:59:30 +00:00
Gary Pendergast
d6923d285c
REST API: Show taxonomy visibility settings.
...
For Gutenberg and other admin-type interfaces, it's useful to be able to see the visibility settings for taxonomies.
Props joehoyle, pento.
Fixes #42707 .
Built from https://develop.svn.wordpress.org/trunk@42729
git-svn-id: http://core.svn.wordpress.org/trunk@42559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-22 00:24:31 +00:00
Aaron Jorbin
f4f64377b7
Community Events Dashboard: Use wp_list_pluck rather than array_columns
...
array_columns is only available in PHP 5.5+
Introduced in [42726]
See: #41112 .
Built from https://develop.svn.wordpress.org/trunk@42728
git-svn-id: http://core.svn.wordpress.org/trunk@42558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 23:27:31 +00:00
Andrea Fercia
54a45f6d77
Accessibility: Change the terms "Quick Edit" link to a button.
...
For better accessibility and semantics, user interface controls that perform an
action should be buttons. Links should exclusively be used for navigation.
See #38677 / [42725].
Fixes #43382 .
Built from https://develop.svn.wordpress.org/trunk@42727
git-svn-id: http://core.svn.wordpress.org/trunk@42557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 23:04:31 +00:00
Aaron Jorbin
9f8d1ab69d
Community Events Dashboard: Always show a WordCamp if one is coming up
...
WordCamps are celebrations of the local WordPress Community and once a local one is scheduled, people in that community should know it is coming. This adjusts the WordPress Events in the dashboard widgets to always display a WordCamp, even if there are multiple Meetups happening first.
Props iandunn, metalandcoffee, warmlaundry, alejandroxlopez, jorbin.
Fixes #41112 .
Built from https://develop.svn.wordpress.org/trunk@42726
git-svn-id: http://core.svn.wordpress.org/trunk@42556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 23:01:31 +00:00
Andrea Fercia
4767e7736c
Accessibility: Change the posts "Quick Edit" link to a button.
...
For better accessibility and semantics, user interface controls that perform an
action should be buttons. Links should exclusively be used for navigation. Also,
adds an `aria-expanded` attribute to the button to communicate to assistive
technologies the expanded / collapsed status of the Quick Edit form.
Props Cheffheid, audrasjb, afercia.
Fixes #38677 .
Built from https://develop.svn.wordpress.org/trunk@42725
git-svn-id: http://core.svn.wordpress.org/trunk@42555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 22:31:32 +00:00
Sergey Biryukov
ebeb2bcf5b
Tests: Replace use of $this->server
with rest_get_server()
for better memory recycling.
...
Props danielbachhuber.
Fixes #41641 .
Built from https://develop.svn.wordpress.org/trunk@42724
git-svn-id: http://core.svn.wordpress.org/trunk@42554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 16:25:31 +00:00
Mark Jaquith
edfe2ece51
Cache API: Allow external object caches to gracefully degrade to the default object cache.
...
Rework logic for how external object caches are detected, so that if
an external cache does not define a `wp_cache_init()`, the built-in
object cache will be used.
Object caches can now wrap their entire contents in logic checks. So a
Redis caching backend could make sure that the `Redis` PHP class is
available before defining all the caching functions. And if Redis is
not available, the site doesn't break or throw errors or think it is
using caching when it isn't. This is particularly useful for doing
local development, where you might want to develop on a site without
running Memcache or Redis like you are in production.
* Accounts for multisite, which may re-initialize the object cache
multiple times.
* Accounts for object caches that may include `object-cache.php` during
`advanced-cache.php` (before WP loads it).
Props jtsternberg, markjaquith.
Fixes #22661 .
Built from https://develop.svn.wordpress.org/trunk@42723
git-svn-id: http://core.svn.wordpress.org/trunk@42553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 14:59:30 +00:00
Sergey Biryukov
c7c98dd7ea
Docs: Correct $id
parameter type for old_slug_redirect_post_id
filter.
...
Props dlh.
Fixes #43375 .
Built from https://develop.svn.wordpress.org/trunk@42722
git-svn-id: http://core.svn.wordpress.org/trunk@42552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-21 09:35:33 +00:00
Sergey Biryukov
9e5e5ecdc6
Docs: Add a reference to get_pages()
arguments in wp_dropdown_pages()
and wp_list_pages()
, as they both use the function internally.
...
Props birgire.
Fixes #43355 .
Built from https://develop.svn.wordpress.org/trunk@42721
git-svn-id: http://core.svn.wordpress.org/trunk@42549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-19 22:24:31 +00:00
Sergey Biryukov
dcf5eb07de
Docs: Correct documentation for Heartbeat filters.
...
`$response` parameter is documented as an array or object, but only array is actually supported.
See #42777 , #42505 .
Built from https://develop.svn.wordpress.org/trunk@42720
git-svn-id: http://core.svn.wordpress.org/trunk@42548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-19 21:46:33 +00:00
Peter Wilson
e6ccdf161f
General: Further improve error messages following [42648].
...
Props kristastevens, melchoyce.
Fixes #38332 for trunk.
Built from https://develop.svn.wordpress.org/trunk@42719
git-svn-id: http://core.svn.wordpress.org/trunk@42547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-19 02:13:32 +00:00
Dominik Schilling
5eddf9a359
I18N: Remove unused $start_of_week
property from WP_Locale
.
...
Missed in [35685], see #28344 .
Props birgire, tonybogdanov.
Fixes #43344 .
Built from https://develop.svn.wordpress.org/trunk@42718
git-svn-id: http://core.svn.wordpress.org/trunk@42546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-18 16:32:34 +00:00
Konstantin Obenland
3f7a8aac6b
Docs: Add filter docs for wp_refresh_nonces
...
Props chetan200891, slushman, dlh, netweb.
Fixes #42777 .
Built from https://develop.svn.wordpress.org/trunk@42717
git-svn-id: http://core.svn.wordpress.org/trunk@42545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-17 04:42:33 +00:00
Sergey Biryukov
e50b9c943f
Database: If both WP_DEBUG
and WP_DEBUG_DISPLAY
are true, display a more specific error message in wpdb::bail()
.
...
Props sivel, Mte90, SergeyBiryukov.
Fixes #13657 .
Built from https://develop.svn.wordpress.org/trunk@42716
git-svn-id: http://core.svn.wordpress.org/trunk@42544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-15 14:29:30 +00:00
atimmer
e17e29d4ea
Docs: Improve JSDoc for for wp-admin/js/xfn.js
.
...
Props kapteinbluf, igorsch.
Fixes #43204 .
Built from https://develop.svn.wordpress.org/trunk@42715
git-svn-id: http://core.svn.wordpress.org/trunk@42543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-15 13:35:31 +00:00
atimmer
34c6523a0d
Docs: Improve JSDoc for wp-admin/js/user-suggest.js
.
...
Amend r42708 by fixing the 80 character wrap around.
Props timhavinga.
See #43270 .
Built from https://develop.svn.wordpress.org/trunk@42714
git-svn-id: http://core.svn.wordpress.org/trunk@42542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-15 13:26:33 +00:00
Sergey Biryukov
7d2cd516d1
Twenty Seventeen: Underline links in comments.
...
Props jainnidhi, larrach, audrasjb.
Fixes #43317 .
Built from https://develop.svn.wordpress.org/trunk@42713
git-svn-id: http://core.svn.wordpress.org/trunk@42541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-15 03:34:30 +00:00
Sergey Biryukov
5d1e06f939
Docs: Move inline comments in wp_kses_split2()
before the blocks they apply to.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42712
git-svn-id: http://core.svn.wordpress.org/trunk@42540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-14 11:46:33 +00:00
Sergey Biryukov
d9f222f740
Customize: Correct closing tags in customize_themes_print_templates()
.
...
Props johnpgreen, nandorsky.
Fixes #43307 .
Built from https://develop.svn.wordpress.org/trunk@42711
git-svn-id: http://core.svn.wordpress.org/trunk@42539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-13 22:15:32 +00:00
Drew Jaynes
6e665d1f15
Docs: Link to the "Conditional Tags" article in the Theme Developer Handbook from the descriptions for a variety of core conditional tag functions.
...
These notations largely serve to direct consumers (of both the source and the parsed code reference) to extended information on individual and related conditional tags throughout WordPress. The changeset also standardizes corresponding DocBlock summaries to use third-person singular verbs.
Notations been added for the following functions:
* comments_open()
* email exists()
* has_excerpt()
* has_post_thumbnail()
* has_tag()
* in_category()
* in_the_loop()
* is_404()
* is_active_sidebar()
* is_active_widget()
* is_admin()
* is_admin_bar_showing()
* is_archive()
* is_attachment()
* is_author()
* is_blog_installed()
* is_category()
* is_comments_popup()
* is_date()
* is_day()
* is_dynamic_sidebar()
* is_feed()
* is_front_page()
* is_home()
* is_local_attachment()
* is_main_query
* is_month()
* is_multi_author
* is_new_day()
* is_page()
* is_page_template()
* is_paged()
* is_plugin_active()
* is_plugin_active_for_network()
* is_plugin_inactive()
* is_plugin_page()
* is_post_type_archive()
* is_preview()
* is_rtl()
* is_search()
* is_single()
* is_singular()
* is_sticky()
* is_tag()
* is_tax()
* is_taxonomy_hierarchical()
* is_time()
* is_trackback()
* is_user_logged_in()
* is_year()
* pings_open()
* post_type_exists()
* taxonomy_exists()
* term_exists()
* username exists()
* wp_attachment_is_image()
* wp_script_is()
Props janalwin.
Fixes #43254 .
Built from https://develop.svn.wordpress.org/trunk@42710
git-svn-id: http://core.svn.wordpress.org/trunk@42538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-13 16:54:31 +00:00
atimmer
5e190dc084
Docs: Improve JSDoc for media/views/spinner.js
.
...
Amends r42675 - includes the built media files.
Built from https://develop.svn.wordpress.org/trunk@42709
git-svn-id: http://core.svn.wordpress.org/trunk@42537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-13 15:45:30 +00:00
atimmer
87130f0e20
Docs: Improve JSDoc for wp-admin/js/user-suggest.js
.
...
Props timhavinga.
Fixes #43270 .
Built from https://develop.svn.wordpress.org/trunk@42708
git-svn-id: http://core.svn.wordpress.org/trunk@42536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-13 15:38:31 +00:00
Sergey Biryukov
68a3e7745a
Docs: Add documentation for header_video_settings
filter.
...
Props milana_cap.
Fixes #43300 .
Built from https://develop.svn.wordpress.org/trunk@42707
git-svn-id: http://core.svn.wordpress.org/trunk@42535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-12 22:39:31 +00:00
Sergey Biryukov
dfa6839706
Media: In img_caption_shortcode()
, make sure $id
and $caption_id
are always defined.
...
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42706
git-svn-id: http://core.svn.wordpress.org/trunk@42534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-12 22:36:33 +00:00
Sergey Biryukov
0306b3f637
Docs: Use code formatting for tags in img_caption_shortcode()
DocBlock.
...
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42705
git-svn-id: http://core.svn.wordpress.org/trunk@42533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-12 21:40:31 +00:00
Sergey Biryukov
0f8d7de77d
Media: Pass original attribute values to img_caption_shortcode_width
filter instead of markup pieces.
...
Add `caption_id` to the list of documented `[caption]` shortcode attributes.
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42704
git-svn-id: http://core.svn.wordpress.org/trunk@42532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-12 21:37:30 +00:00
Sergey Biryukov
0a97d79899
Comments: Avoid a PHP notice in paginate_comments_links()
if type
argument is set to array.
...
The function is a wrapper for `paginate_links()`, which returns an array if requested.
Props anantajitjg.
Fixes #43299 .
Built from https://develop.svn.wordpress.org/trunk@42703
git-svn-id: http://core.svn.wordpress.org/trunk@42531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-12 21:12:35 +00:00
Sergey Biryukov
abf27d78b9
Media: After [42695], remove redundant check that is already performed a few lines above.
...
Props gnif.
See #43255 .
Built from https://develop.svn.wordpress.org/trunk@42702
git-svn-id: http://core.svn.wordpress.org/trunk@42530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 21:55:30 +00:00
Sergey Biryukov
c2e74ab915
Database: In require_wp_db()
, check if database constants are defined before using them.
...
Otherwise, `wp-admin/setup-config.php` triggers an undefined constant warning in PHP 7.2.
Props mariusvw, jryancard for initial patch.
Fixes #35560 .
Built from https://develop.svn.wordpress.org/trunk@42701
git-svn-id: http://core.svn.wordpress.org/trunk@42529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 18:47:30 +00:00
Sergey Biryukov
b2411e9e3f
Administration: Make sure wp.updates.addAdminNotice
is displayed after the page header and does not unexpectedly push down "Add New" and other buttons.
...
Props shivapoudel.
Fixes #41221 .
Built from https://develop.svn.wordpress.org/trunk@42700
git-svn-id: http://core.svn.wordpress.org/trunk@42528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 17:28:30 +00:00
Sergey Biryukov
e1e041271e
Docs: Fix typo in term_exists()
DocBlock.
...
Props milana_cap, danieltj.
Fixes #43268 .
Built from https://develop.svn.wordpress.org/trunk@42699
git-svn-id: http://core.svn.wordpress.org/trunk@42527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 17:16:29 +00:00
Sergey Biryukov
4a55ea5e68
Networks and Sites: In get_site_by_path()
, use single domain
and path
parameters if there's only one item to look for.
...
This should increase the chances of `WP_Site_Query::get_sites()` hitting an existing cache.
Props spacedmonkey.
Fixes #42299 .
Built from https://develop.svn.wordpress.org/trunk@42698
git-svn-id: http://core.svn.wordpress.org/trunk@42526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 17:09:31 +00:00
Sergey Biryukov
f88dddcab5
Media: Add aac
to the list of allowed file types.
...
Props desrosj.
Fixes #42919 .
Built from https://develop.svn.wordpress.org/trunk@42697
git-svn-id: http://core.svn.wordpress.org/trunk@42525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 16:40:31 +00:00
Sergey Biryukov
3de0634199
Docs: Fix typo in wp_audio_extensions
and wp_video_extensions
filter descriptions.
...
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42696
git-svn-id: http://core.svn.wordpress.org/trunk@42524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 16:29:30 +00:00
Sergey Biryukov
e6322d0afe
Media: In WP_Image_Editor::make_image()
, close previously opened output buffer if the file could not be created.
...
Props dhanendran, gnif.
Fixes #43255 .
Built from https://develop.svn.wordpress.org/trunk@42695
git-svn-id: http://core.svn.wordpress.org/trunk@42523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 16:25:31 +00:00
Sergey Biryukov
beeafbc7ec
Media: After [42693], update HTML4 markup in img_caption_shortcode()
to avoid an empty ID attribute as well.
...
Add a unit test for `aria-describedby` in `img_caption_shortcode()`.
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42694
git-svn-id: http://core.svn.wordpress.org/trunk@42522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 15:40:30 +00:00
Sergey Biryukov
0f2b559d05
Media: Only add aria-describedby
in img_caption_shortcode()
if a non-empty attachment ID attribute was provided.
...
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42693
git-svn-id: http://core.svn.wordpress.org/trunk@42521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 15:20:30 +00:00
Sergey Biryukov
dffe5deb97
Media: Make sure $caption_id
does not depend on an undefined variable.
...
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42692
git-svn-id: http://core.svn.wordpress.org/trunk@42520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 14:53:30 +00:00
Sergey Biryukov
3e19b66f40
Media: Add aria-describedby
to img_caption_shortcode()
output to improve image/caption relationship.
...
Props joedolson.
Fixes #34595 .
Built from https://develop.svn.wordpress.org/trunk@42691
git-svn-id: http://core.svn.wordpress.org/trunk@42519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 14:44:30 +00:00
Sergey Biryukov
8df00f0354
Media: Convert concatenation in img_caption_shortcode()
to sprintf()
for clarity.
...
See #34595 .
Built from https://develop.svn.wordpress.org/trunk@42690
git-svn-id: http://core.svn.wordpress.org/trunk@42518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 14:17:30 +00:00
Sergey Biryukov
7a8e4bcb1b
Administration: Remove erroneous transition-delay
values from CSS files.
...
Although unitless zero is allowed for `<length>` CSS data type, it's invalid for `<time>` data type.
Props chetan200891, manuel_84, GaryJ.
Fixes #43195 .
Built from https://develop.svn.wordpress.org/trunk@42689
git-svn-id: http://core.svn.wordpress.org/trunk@42517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 12:55:30 +00:00
Sergey Biryukov
e97d2c0407
Users: After [41163], add a notice for Email field on Profile screen that the new address will not become active until confirmed.
...
Props dilipbheda.
Fixes #43106 . See #16470 .
Built from https://develop.svn.wordpress.org/trunk@42688
git-svn-id: http://core.svn.wordpress.org/trunk@42516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-11 12:23:31 +00:00
Sergey Biryukov
12f854b6e8
Build/Test Tools: Update prefixed CSS properties in about.css
.
...
Firefox 52+ supports unprefixed `column-count` and `column-gap` properties.
Props netweb, afercia.
Fixes #43190 .
Built from https://develop.svn.wordpress.org/trunk@42687
git-svn-id: http://core.svn.wordpress.org/trunk@42515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-10 23:47:31 +00:00
Sergey Biryukov
903224cce4
Plugins: Use correct variable name in install_plugin_information()
.
...
Props afragen.
Fixes #43282 . See #43192 , #29274 .
Built from https://develop.svn.wordpress.org/trunk@42686
git-svn-id: http://core.svn.wordpress.org/trunk@42514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-10 22:08:30 +00:00
Sergey Biryukov
b1f48870d7
Administration: Rename Appearance → Editor menu item to Theme Editor and Plugins → Editor to Plugin Editor for clarity.
...
Props xkon, karmatosed.
Fixes #43072 .
Built from https://develop.svn.wordpress.org/trunk@42685
git-svn-id: http://core.svn.wordpress.org/trunk@42513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-10 08:43:32 +00:00
John Blackbourn
ee24b48106
Comments: Add a "Mine" link to the list of filters on the comment listing screen.
...
This filter shows comments made by the current user, and copies the same filter functionality that's available on the post listing screens.
Props Iceable
Fixes #42379
Built from https://develop.svn.wordpress.org/trunk@42684
git-svn-id: http://core.svn.wordpress.org/trunk@42512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 18:46:31 +00:00
Drew Jaynes
1ae9491548
Docs: Fix a copy paste error in the DocBlock summary for wp_ssl_constants()
, see [13062].
...
Props terriann.
Fixes #43272 .
Built from https://develop.svn.wordpress.org/trunk@42683
git-svn-id: http://core.svn.wordpress.org/trunk@42511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 18:21:31 +00:00
John Blackbourn
b1ed10ab9a
HTTP API: Add the URL as a paramter to various HTTP related filters.
...
Props paulschreiber, purnendu
Fixes #42186
Built from https://develop.svn.wordpress.org/trunk@42682
git-svn-id: http://core.svn.wordpress.org/trunk@42510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 18:11:30 +00:00
John Blackbourn
427ae1692d
Docs: Un-correct an incorrection correction.
...
See [42680]
See #42505
Built from https://develop.svn.wordpress.org/trunk@42681
git-svn-id: http://core.svn.wordpress.org/trunk@42509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 17:57:30 +00:00
John Blackbourn
763f34d117
Docs: Correct some secondary documentation for the https_local_ssl_verify
and https_ssl_verify
filters.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@42680
git-svn-id: http://core.svn.wordpress.org/trunk@42508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 17:48:29 +00:00
John Blackbourn
fc6ba86b80
Docs: First pass at switching some array parameter documentation to typed notation.
...
Props janak007
See #41756
Built from https://develop.svn.wordpress.org/trunk@42679
git-svn-id: http://core.svn.wordpress.org/trunk@42507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 17:26:31 +00:00
John Blackbourn
91464bce65
Docs: Add missing code formatting to various @since
entries.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@42678
git-svn-id: http://core.svn.wordpress.org/trunk@42506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 16:55:31 +00:00
John Blackbourn
823cac40df
Docs: Update the hook docs for update_bulk_theme_complete_actions
.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@42677
git-svn-id: http://core.svn.wordpress.org/trunk@42505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 16:22:45 +00:00
John Blackbourn
332b9844a9
Posts, Post Types: Add a new add_inline_data
action which allows extra fields to be added to the inline editing fields.
...
Props mensmaximus, NathanAtmoz
Fixes #36085
Built from https://develop.svn.wordpress.org/trunk@42676
git-svn-id: http://core.svn.wordpress.org/trunk@42504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 15:55:32 +00:00
atimmer
8ad4538d0f
Docs: Improve JSDoc for media/views/spinner.js
.
...
Props avillegasn.
Fixes #43230 .
Built from https://develop.svn.wordpress.org/trunk@42675
git-svn-id: http://core.svn.wordpress.org/trunk@42503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-09 14:32:33 +00:00
Sergey Biryukov
b9944def27
Posts, Post Types: Remove extra tabs around page_attributes_meta_box_template
action in page_attributes_meta_box()
.
...
Props chetan200891.
See #43252 .
Built from https://develop.svn.wordpress.org/trunk@42674
git-svn-id: http://core.svn.wordpress.org/trunk@42502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-08 11:24:32 +00:00
Sergey Biryukov
ef4f47d00f
Customize: Avoid extra tabs in a textarea in WP_Customize_Control::render_content()
.
...
See #43252 .
Built from https://develop.svn.wordpress.org/trunk@42673
git-svn-id: http://core.svn.wordpress.org/trunk@42501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-08 10:59:30 +00:00
Sergey Biryukov
a5958a289b
Upgrade/Install: Avoid extra line breaks in a textarea in wp-admin/setup-config.php
.
...
See #43252 .
Built from https://develop.svn.wordpress.org/trunk@42672
git-svn-id: http://core.svn.wordpress.org/trunk@42500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-08 10:59:00 +00:00
Sergey Biryukov
a65ce4e34b
Options: Avoid extra tabs in a textarea in wp-admin/options.php
.
...
See #43252 .
Built from https://develop.svn.wordpress.org/trunk@42671
git-svn-id: http://core.svn.wordpress.org/trunk@42499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-08 10:58:31 +00:00
Sergey Biryukov
cceab04984
Comments: Avoid extra tabs in a textarea in WP_Comments_List_Table::column_comment()
.
...
Props chetan200891, jrf.
Fixes #43252 .
Built from https://develop.svn.wordpress.org/trunk@42670
git-svn-id: http://core.svn.wordpress.org/trunk@42498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-08 10:57:32 +00:00
Helen Hou-Sandí
aaa28bba15
Options: Use strings in the test suite that follow community guidelines.
...
Also somewhat explain to future maintainers why this pairing of strings was chosen, besides this committer's musical preferences. Social opinions on cancer are fairly clear, as are commonly accepted definitions of profanity and family-friendly language.
Shout out to the close contender, which would have been particularly appropriate here: "You could be the king // But watch the queen conquer".
see #43207 , #38176
Built from https://develop.svn.wordpress.org/trunk@42667
git-svn-id: http://core.svn.wordpress.org/trunk@42495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 22:42:31 +00:00
John Blackbourn
1c2ef0f475
Build/Test Tools: Allow code coverage reports to be generated.
...
This corrects the attribute needed to allow PHPUnit to generate coverage reports, and also adds a blacklist of files and directories that are excluded from coverage reports.
Props schlessera, jipmoors
Fixes #43067 , #43240
Built from https://develop.svn.wordpress.org/trunk@42665
git-svn-id: http://core.svn.wordpress.org/trunk@42494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 22:21:30 +00:00
John Blackbourn
f7224ea635
Docs: Copy a helpful inline doc into the function header for visibility.
...
See #42505
Built from https://develop.svn.wordpress.org/trunk@42664
git-svn-id: http://core.svn.wordpress.org/trunk@42493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 22:13:30 +00:00
Aaron Jorbin
17589837d2
Options: Use most appropriate language in the test suite.
...
The test suite's opinion of cancer should be clear.
Reverts r42659.
See #43207 , #38176
Built from https://develop.svn.wordpress.org/trunk@42663
git-svn-id: http://core.svn.wordpress.org/trunk@42492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 20:59:31 +00:00
Boone Gorges
355b6e80da
Improve parameter description for 'allow_empty_comments'.
...
Introduced in [42661].
Props swissspidy.
See #16979 .
Built from https://develop.svn.wordpress.org/trunk@42662
git-svn-id: http://core.svn.wordpress.org/trunk@42491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 20:50:30 +00:00
Boone Gorges
6c11ac0c16
Comments: Introduce 'allow_empty_comment' filter.
...
This filter allows plugin authors to allow empty comments on a selective
basis during comment submission.
Props jpurdy647.
Fixes #16979 .
Built from https://develop.svn.wordpress.org/trunk@42661
git-svn-id: http://core.svn.wordpress.org/trunk@42490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 20:09:30 +00:00
Drew Jaynes
39ce01d83a
Docs: Fix a typo in the DocBlock description for get_bloginfo()
illustrating the URL structure for RDF feeds.
...
Props ibachal.
See #42505 .
Built from https://develop.svn.wordpress.org/trunk@42660
git-svn-id: http://core.svn.wordpress.org/trunk@42489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 19:42:30 +00:00
John Blackbourn
982791db31
Options: Use more appropriate language in the test suite.
...
See #43207 , #38176
Built from https://develop.svn.wordpress.org/trunk@42659
git-svn-id: http://core.svn.wordpress.org/trunk@42488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 18:52:31 +00:00
Drew Jaynes
9dd9913ecd
Docs: Document default arguments for wp_tag_cloud()
in a hash notation, noting that full lists of additionally-supported arguments are already documented in get_terms()
and wp_generate_tag_cloud()
.
...
Props birgire, johnbillion.
Fixes #42019 .
Built from https://develop.svn.wordpress.org/trunk@42658
git-svn-id: http://core.svn.wordpress.org/trunk@42487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-07 15:22:34 +00:00
Felix Arntz
f3eaddd2dc
Options: Unhook default option filter when setting is unregistered.
...
Fixes #43207 .
Built from https://develop.svn.wordpress.org/trunk@42655
git-svn-id: http://core.svn.wordpress.org/trunk@42484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-06 14:49:32 +00:00
Dion Hulse
3517dc0b8b
Updates: Partially revert [42584], as this branch of code should always be run after a core update check.
...
This code branch is responsible for running all autoupdates, including plugins and themes - which should run regardless of if there's a core autoupdate available.
This revert does not revert the `$timeout` changes, as these should still use cached data if it's available.
Ideally this should be decoupled from the core update check to allow background updates to operate even when the core update check is disabled or running more often than twice daily.
See #43103 .
Built from https://develop.svn.wordpress.org/trunk@42653
git-svn-id: http://core.svn.wordpress.org/trunk@42482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-06 11:04:34 +00:00
Dion Hulse
0eb9e0c8d0
XML-RPC: Add default values to IXR_Message for PHP 7.2 compatibility to avoid PHP Warnings.
...
Fixes #43216 for trunk.
Built from https://develop.svn.wordpress.org/trunk@42652
git-svn-id: http://core.svn.wordpress.org/trunk@42481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-06 02:56:32 +00:00
Peter Wilson
8f0ab2efb8
Taxonomy: Stop warming term meta cache unnecessarily.
...
Prevent several core function calls to `get_terms()` from warming the term meta cache.
Props peterwilsoncc, boonebgorges, jrf.
Fixes #43142 .
Built from https://develop.svn.wordpress.org/trunk@42649
git-svn-id: http://core.svn.wordpress.org/trunk@42478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-02-05 04:10:30 +00:00