Weston Ruter
5c671464de
Revert [40807] unbumping from 4.8 Beta 2 back to Beta 1 due to aborted release.
...
Built from https://develop.svn.wordpress.org/trunk@40808
git-svn-id: http://core.svn.wordpress.org/trunk@40666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 23:00:43 +00:00
Weston Ruter
48578765ec
WordPress 4.8 Beta 2
...
Built from https://develop.svn.wordpress.org/trunk@40807
git-svn-id: http://core.svn.wordpress.org/trunk@40665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 22:02:41 +00:00
Weston Ruter
123158e7d8
Widgets: Revert [40251] pending more accessible solution for showing default widget titles rather than using placeholders.
...
See #39909 .
Built from https://develop.svn.wordpress.org/trunk@40806
git-svn-id: http://core.svn.wordpress.org/trunk@40664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 20:45:40 +00:00
James Nylen
df5b8dcc82
REST API: Avoid sending blank Last-Modified
headers with authenticated requests.
...
This commit adds a new `WP_REST_Server#remove_header` method and uses it to clear the `Last-Modified` header when the "no caching" headers are sent (by default for all authenticated REST API requests). This matches the behavior of the `nocache_headers` function used in other parts of WordPress.
Previously, the REST API would send an empty `Last-Modified` header in this situation. Under some server and browser configurations, this causes browsers to cache authenticated REST API requests, which is undesirable.
Props iv3rson76, zinigor, rmccue, jnylen0.
Fixes #40444 .
Built from https://develop.svn.wordpress.org/trunk@40805
git-svn-id: http://core.svn.wordpress.org/trunk@40663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 20:27:44 +00:00
Weston Ruter
e8e5a71a85
Docs: Improve phpdoc for WP_Customize_Manager
, WP_Customize_Control
, WP_Customize_Setting
, and WP_Customize_Selective_Refresh
.
...
Props 4nickpick, sagarprajapati, ketuchetan, BharatKambariya, mrahmadawais, westonruter.
Fixes #39671 .
Built from https://develop.svn.wordpress.org/trunk@40804
git-svn-id: http://core.svn.wordpress.org/trunk@40662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 20:25:41 +00:00
Sergey Biryukov
2c5e9a34b2
Dashboard: Change the cache key for dashboard RSS widget; remove the unnecessary database upgrade routine.
...
Props iandunn, ocean90.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40803
git-svn-id: http://core.svn.wordpress.org/trunk@40661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 19:14:42 +00:00
Sergey Biryukov
a2788b09d5
Dashboard: Append the current locale to dashboard RSS widget cache key in wp_dashboard_rss_control()
, for consistency with the changes to wp_dashboard_cached_rss_widget()
in [33183] and [33192].
...
See #32804 , #40702 .
Built from https://develop.svn.wordpress.org/trunk@40802
git-svn-id: http://core.svn.wordpress.org/trunk@40660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 19:00:44 +00:00
Andrew Ozz
a89f203b21
TinyMCE: fix selecting the link node after creating a link by pasting an URL.
...
Props iseulde.
Fixes #40818 .
Built from https://develop.svn.wordpress.org/trunk@40801
git-svn-id: http://core.svn.wordpress.org/trunk@40659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 18:55:44 +00:00
Joe McGill
7d43d71800
Media: Ensure WP_Screen sets post type on wp-admin/upload.php.
...
The post type property is set to 'attachment' when on the upload screen.
Props postpostmodern.
Fixes #39509 .
Built from https://develop.svn.wordpress.org/trunk@40800
git-svn-id: http://core.svn.wordpress.org/trunk@40658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 18:29:42 +00:00
Andrea Fercia
1a8f7ab144
Dashboard: Don't trigger an Events search when the search field is empty.
...
Fixes #40816 .
Built from https://develop.svn.wordpress.org/trunk@40799
git-svn-id: http://core.svn.wordpress.org/trunk@40657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 17:27:43 +00:00
Konstantin Obenland
92642624fd
About: Optimize strings for l10n
...
Uses html entities for quotes and adds translator comment for event links.
Props ocean90.
See #40721 .
Built from https://develop.svn.wordpress.org/trunk@40798
git-svn-id: http://core.svn.wordpress.org/trunk@40656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 16:45:44 +00:00
Andrea Fercia
e008a5c7db
Themes: Improve the theme installer Favorites and Feature Filter tabs alignment.
...
Props nitin kevadiya, darshan02, mp518.
Fixes #40315 .
Built from https://develop.svn.wordpress.org/trunk@40797
git-svn-id: http://core.svn.wordpress.org/trunk@40655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 16:18:41 +00:00
Konstantin Obenland
359cc45e08
Docs: Improve inline docs for inlineEditPost.
...
Props jjcomack, rensw90.
Fixes #39823 .
Built from https://develop.svn.wordpress.org/trunk@40796
git-svn-id: http://core.svn.wordpress.org/trunk@40654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 15:45:42 +00:00
Konstantin Obenland
14d0491fbf
Twenty Seventeen: Remove uneccessary return statement
...
Props truongwp.
Fixes #40516 .
Built from https://develop.svn.wordpress.org/trunk@40795
git-svn-id: http://core.svn.wordpress.org/trunk@40653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 15:19:41 +00:00
Andrea Fercia
36d25d3960
Dashboard: Improve the Events widget spinner position after [40789].
...
Props iandunn.
Fixes #40735 .
Built from https://develop.svn.wordpress.org/trunk@40794
git-svn-id: http://core.svn.wordpress.org/trunk@40652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 14:44:41 +00:00
Dominik Schilling
97e98a80f6
Dashboard: Use get_user_locale()
for the news feed cache key.
...
Since the feed URL can be localized the cache key has to be built with the same locale as the current user is using.
Props iandunn.
Fixes #40417 .
Built from https://develop.svn.wordpress.org/trunk@40793
git-svn-id: http://core.svn.wordpress.org/trunk@40651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 14:36:42 +00:00
Adam Silverstein
5ddd3f92e8
Media: make search input full width on mobile.
...
Props abhishekfdd.
Fixes #40130 .
Built from https://develop.svn.wordpress.org/trunk@40792
git-svn-id: http://core.svn.wordpress.org/trunk@40650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 13:45:42 +00:00
Konstantin Obenland
34e2a6110e
About: Let's get a headstart on 4.8 about strings
...
Strings have been reviewed and are ready for translation—design will come soon.
Props bridgetwillard, jenblogs4u, michelleweber, ryelle, melchoyce.
See #40721 .
Built from https://develop.svn.wordpress.org/trunk@40791
git-svn-id: http://core.svn.wordpress.org/trunk@40649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 11:55:44 +00:00
Andrew Ozz
7a9ce6d03f
Dashboard: Improve the handling of locations determined by geolocating the IP address and by entering a city name. Fix couple of edge cases, and some names.
...
Props iandunn coreymckrill.
Fixes #40702 .
Built from https://develop.svn.wordpress.org/trunk@40790
git-svn-id: http://core.svn.wordpress.org/trunk@40648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 05:48:42 +00:00
Andrew Ozz
daab579a88
Dashboard:
...
- Close the form after obtaining a valid location.
- Fix focusing the toggle button after closing the form.
- Fix aria attribute values.
- Fix positions in IE11.
- Some JS and CSS cleanup.
Props afercia, coreymckrill.
Fixes #40735 .
Built from https://develop.svn.wordpress.org/trunk@40789
git-svn-id: http://core.svn.wordpress.org/trunk@40647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 04:01:41 +00:00
Weston Ruter
bd990d7c4e
Docs: Add missing @since
tags and phpdoc descriptions to the Custom_Image_Header
class.
...
Amends [27497].
Props tejas5989, riddhiehta02, westonruter.
See #21785 .
Fixes #40231 .
Built from https://develop.svn.wordpress.org/trunk@40788
git-svn-id: http://core.svn.wordpress.org/trunk@40646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 03:53:43 +00:00
Andrew Ozz
d7c37de2de
Editor: When stripping paragraph tags, and there is a <br> at the beginning or the end, merge them and keep the paragraph, not the <br>.
...
Props rellect.
Fixes #37066 .
Built from https://develop.svn.wordpress.org/trunk@40787
git-svn-id: http://core.svn.wordpress.org/trunk@40645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 22:55:42 +00:00
Andrew Ozz
b398ccf2a1
TinyMCE: fix pasting while an image with caption is selected. The image and the caption should be replaced with the pasted content.
...
Fixes #40809 .
Built from https://develop.svn.wordpress.org/trunk@40786
git-svn-id: http://core.svn.wordpress.org/trunk@40644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 22:25:41 +00:00
Weston Ruter
e62f6ac8fe
Widgets: Ensure title field for media widget will update with sanitized value after change
event in addition to input
event.
...
Aligns behavior of field with Text widget and other widgets whereby the server-sanitized title (via the `widget-update` request) is supplied into the field after the `change` event.
See #32417 .
Fixes #40805 .
Built from https://develop.svn.wordpress.org/trunk@40785
git-svn-id: http://core.svn.wordpress.org/trunk@40643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 21:04:41 +00:00
Weston Ruter
698c6de4da
Widgets: Use "Add Audio" for button in Audio widget instead of generic "Add File".
...
Props juhise.
See #39995 .
Fixes #40797 .
Built from https://develop.svn.wordpress.org/trunk@40784
git-svn-id: http://core.svn.wordpress.org/trunk@40642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 18:34:42 +00:00
Matias Ventura
aee7e6a1bf
TinyMCE: Provide styles for link and code boundaries.
...
The new version of TinyMCE introduces a cursor-boundary feature for some formatting elements but, by default, it does not provide much in the way of styles. This tweaks their appearance in the WordPress custom skin to match the intended design of the feature.
Props joen.
Fixes #40767 .
Built from https://develop.svn.wordpress.org/trunk@40783
git-svn-id: http://core.svn.wordpress.org/trunk@40641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 17:52:42 +00:00
James Nylen
21b1135b1c
REST API: Do not set X-WP-Deprecated*
headers as often.
...
Only set these headers if (1) `WP_DEBUG` is enabled and (2) headers have not already been sent.
Previously, this code could generate warnings by trying to set a header after response data has already been sent. This happens when code attached to the `shutdown` filter calls a deprecated function, for example.
Also, these headers are unlikely to be useful in the majority of cases; let's only send them if `WP_DEBUG` is enabled.
Props kraftbj, jnylen0, ocean90, rmccue.
Fixes #40787 .
Built from https://develop.svn.wordpress.org/trunk@40782
git-svn-id: http://core.svn.wordpress.org/trunk@40640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 17:49:42 +00:00
Konstantin Obenland
8ef02e5ec7
Dashboard: Combine methods to retreive IP
...
They're only used in one place, no reason to be so verbose about it.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40781
git-svn-id: http://core.svn.wordpress.org/trunk@40639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 17:34:42 +00:00
Jeremy Felt
fd63ede892
Multisite: Handle both role change selections in site-users.php
.
...
Previously, a role selected below the list table would not apply on save. This aligns the behavior with `wp-admin/users.php` and allows role changes from both selections, deferring to the bottom selection when both are populated.
Props desrosj.
Fixes #40113 .
Built from https://develop.svn.wordpress.org/trunk@40780
git-svn-id: http://core.svn.wordpress.org/trunk@40638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 17:08:43 +00:00
Andrea Fercia
591f423132
Administration: Use consistent spacing for form elements in the Discussion Settings screen.
...
Props sagarjadhav.
Fixes #31594 .
Built from https://develop.svn.wordpress.org/trunk@40779
git-svn-id: http://core.svn.wordpress.org/trunk@40637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 15:55:44 +00:00
John Blackbourn
64d65f007d
Login and Registration: Add some margin to notices on the login screen so multiple notices remain separated.
...
Fixes #39971
Built from https://develop.svn.wordpress.org/trunk@40778
git-svn-id: http://core.svn.wordpress.org/trunk@40636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 15:40:41 +00:00
Konstantin Obenland
83187e8ea0
Dashboard: Document request proxy for events.
...
Documents the reason why the request is proxied through WP, instead of being
made directly to api.wordpress.org.
Props iandunn, michelleweber.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40777
git-svn-id: http://core.svn.wordpress.org/trunk@40635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 14:44:43 +00:00
Konstantin Obenland
9bbbc719d4
Dashboard: Properly localize data for events
...
Moves localization to script-loader and removes dependency for two strings.
Props dd32, iandunn.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40776
git-svn-id: http://core.svn.wordpress.org/trunk@40634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 14:34:43 +00:00
Pascal Birchler
bb1207cf5a
Media: Correct a translatable string for MediaElement.js.
...
Adds the needed context to the string "None". Introduced in [38089].
Props leewillis77.
See #37394 .
Fixes #40800 .
Built from https://develop.svn.wordpress.org/trunk@40775
git-svn-id: http://core.svn.wordpress.org/trunk@40633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 11:06:44 +00:00
Konstantin Obenland
7cae389acc
Dashboard: Always pass the IP when getting events
...
Allows the API to determine event locations more accurately.
Props iandunn.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40774
git-svn-id: http://core.svn.wordpress.org/trunk@40632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-18 07:31:43 +00:00
Konstantin Obenland
71adf97a35
Upgrade: Use correct commit no. to trigger upgrade
...
Props iandunn.
See [40607], #40702 .
Built from https://develop.svn.wordpress.org/trunk@40773
git-svn-id: http://core.svn.wordpress.org/trunk@40631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-17 22:03:46 +00:00
Weston Ruter
764d8b521f
Media: Trim whitespace in URLs provided for external embeds.
...
Also avoid showing error notice in media widget when URL field is empty.
Props timmydcrawford, westonruter.
Fixes #40771 .
Built from https://develop.svn.wordpress.org/trunk@40772
git-svn-id: http://core.svn.wordpress.org/trunk@40630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-17 01:59:42 +00:00
Weston Ruter
509e706c13
Customize: Run a partial's fallback behavior (full refresh) when selective refresh fails due to a script error.
...
This ensures that 3rd-party scripts that users paste into Text widgets will gracefully recover and result in the expected preview.
See #27355 .
Fixes #40658 .
Built from https://develop.svn.wordpress.org/trunk@40771
git-svn-id: http://core.svn.wordpress.org/trunk@40629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-17 00:01:40 +00:00
Pascal Birchler
8c7ea71edb
Media: Simplify upload error message construction.
...
Built from https://develop.svn.wordpress.org/trunk@40736
git-svn-id: http://core.svn.wordpress.org/trunk@40594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 17:58:41 +00:00
Aaron Campbell
38347d7c58
Add nonce for updating file system credentials.
...
Built from https://develop.svn.wordpress.org/trunk@40723
git-svn-id: http://core.svn.wordpress.org/trunk@40581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 14:48:44 +00:00
Weston Ruter
4eb107cd52
Customize: Fix phpunit tests after [40704] due to logic inversion error.
...
Built from https://develop.svn.wordpress.org/trunk@40716
git-svn-id: http://core.svn.wordpress.org/trunk@40579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 14:34:42 +00:00
Dominik Schilling
3d10fef22d
Customize: Igore invalid customization sessions.
...
Built from https://develop.svn.wordpress.org/trunk@40704
git-svn-id: http://core.svn.wordpress.org/trunk@40567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 12:07:43 +00:00
Pascal Birchler
3d95e3ae81
Adjust post meta checks
...
Built from https://develop.svn.wordpress.org/trunk@40692
git-svn-id: http://core.svn.wordpress.org/trunk@40555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 08:46:42 +00:00
Pascal Birchler
76d77e927b
Improve redirect handling
...
Built from https://develop.svn.wordpress.org/trunk@40689
git-svn-id: http://core.svn.wordpress.org/trunk@40552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 08:38:42 +00:00
Pascal Birchler
e88a48a066
Whitelist post arguments in XML-RPC
...
Built from https://develop.svn.wordpress.org/trunk@40677
git-svn-id: http://core.svn.wordpress.org/trunk@40540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 08:09:42 +00:00
Weston Ruter
d8f94986b2
Customize: Keep alive auto-drafts created for page/post stubs when parent changeset is updated, and delete when changeset is garbage-collected.
...
Props utkarshpatel, westonruter.
See #31089 .
Fixes #39715 .
Built from https://develop.svn.wordpress.org/trunk@40676
git-svn-id: http://core.svn.wordpress.org/trunk@40539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 05:37:44 +00:00
Weston Ruter
7f008a21de
Widgets: Add missing wp-editor-area
CSS class for textarea
in the TinyMCE-extended Text widget to ensure proper styles are applied.
...
Removes extra border around TinyMCE-wrapped `textarea` and removes gap at bottom due to lack of `display:block`.
Props johnjamesjacoby, westonruter.
See #35243 .
Fixes #40755 .
Built from https://develop.svn.wordpress.org/trunk@40675
git-svn-id: http://core.svn.wordpress.org/trunk@40538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-16 00:11:41 +00:00
Weston Ruter
5e67d6d81f
Widgets: Remove image sizes generated during media widget phpunit tests from being version controlled.
...
Amends [40640].
See #32417 .
Built from https://develop.svn.wordpress.org/trunk@40674
git-svn-id: http://core.svn.wordpress.org/trunk@40537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 22:59:42 +00:00
Weston Ruter
97e376ca39
Widgets: Ensure return value of widget_text
filter is not dropped but passed into widget_text_content
filter for rendering.
...
Amends [40631].
Props vijustin, swissspidy, westonruter.
See #35243 .
Fixes #40772 .
Built from https://develop.svn.wordpress.org/trunk@40673
git-svn-id: http://core.svn.wordpress.org/trunk@40536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 22:36:41 +00:00
Mel Choyce
66d3a486f6
Plugins: Fix plugin name display on Chrome 58 and above.
...
On Chrome 58 and above, plugin names within the plugin details modal were collapsed down into an ellipsis. This fix rewrites the CSS to make sure the titles are always shown.
Props mrwweb, afercia, Presskopp.
Fixes #40579 .
Built from https://develop.svn.wordpress.org/trunk@40672
git-svn-id: http://core.svn.wordpress.org/trunk@40535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 20:13:42 +00:00
Weston Ruter
9cb2cbc26f
Customize: Fix alignment of natural-width media buttons in site icon control.
...
Amends [40653].
Props afercia.
Fixes #40220 .
Built from https://develop.svn.wordpress.org/trunk@40671
git-svn-id: http://core.svn.wordpress.org/trunk@40534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 18:51:41 +00:00
Weston Ruter
8a29b28a98
Widgets: Prevent image title
attribute from being populated from attachment title
by default upon selection.
...
Props westonruter, timmydcrawford.
See #39993 .
Built from https://develop.svn.wordpress.org/trunk@40670
git-svn-id: http://core.svn.wordpress.org/trunk@40533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 18:42:44 +00:00
Konstantin Obenland
68588821c3
Dashboard: Community events formatting improvements
...
Props Soean.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40669
git-svn-id: http://core.svn.wordpress.org/trunk@40532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-15 09:44:43 +00:00
Rachel Baker
580cf33c81
Taxonomy: Remove extraneous '
included in Term delete markup.
...
Unmatched single quotation mark after the delete link href was introduced in r40655.
Props Chouby.
Fixes #9777 .
Built from https://develop.svn.wordpress.org/trunk@40668
git-svn-id: http://core.svn.wordpress.org/trunk@40531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-14 19:50:44 +00:00
Rachel Baker
195b227357
Formatting: Increase minimum characters allowed in is_email()
to 6.
...
Brings the minimum characters expected for a valid email address to six, which matches the expectations in `wp_handle_comment_submission()` and REST API email arguments.
Props rmccue, lukecavanagh, rachelbaker, desrosj, sudar.
Fixes #38708 .
Built from https://develop.svn.wordpress.org/trunk@40667
git-svn-id: http://core.svn.wordpress.org/trunk@40530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-14 04:20:43 +00:00
Rachel Baker
9c2f5c18ce
Comments: Correct the $post_id parameter passed to the 'comments_open' and 'pings_open' filters.
...
Fixes bug where previously the `$post_id` function argument was passed to the '_open' filters, instead of the result of the `get_post()` call. If the current post is not found, the `$post_id` filter parameter will be 0.
Props johnbillion, shulard, rachelbaker.
Fixes #40286 .
Built from https://develop.svn.wordpress.org/trunk@40666
git-svn-id: http://core.svn.wordpress.org/trunk@40529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-14 03:50:42 +00:00
Peter Wilson
62de6cc7ec
Menus: Prevent empty class attribute following [40537].
...
Prevents an empty class attribute, `class=""`, from appearing in the HTML if a developer removes all classes using the `nav_menu_submenu_css_class` filter.
Props Kopepasah.
Fixes #36163 .
Built from https://develop.svn.wordpress.org/trunk@40665
git-svn-id: http://core.svn.wordpress.org/trunk@40528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-14 03:38:48 +00:00
Rachel Baker
868312d995
Comments: Update arguments passed to the 'comment_text' filter in check_comment()
.
...
Pass null or empty values for the missing $comment and $args parameters of the 'check_comment' filter in `check_comment()`.
Props boonebgorges, vaishu.agola27, SergeyBiryukov.
Fixes #38314 .
Built from https://develop.svn.wordpress.org/trunk@40664
git-svn-id: http://core.svn.wordpress.org/trunk@40527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-14 03:06:45 +00:00
Andrew Ozz
48339ed3d2
Bump version after beta-1
...
Built from https://develop.svn.wordpress.org/trunk@40663
git-svn-id: http://core.svn.wordpress.org/trunk@40526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-13 00:21:41 +00:00
Andrew Ozz
28f2840bcb
Bump version, beta-1
...
Built from https://develop.svn.wordpress.org/trunk@40662
git-svn-id: http://core.svn.wordpress.org/trunk@40525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 23:17:45 +00:00
Andrew Ozz
964c0710f0
Revert [40256] for now as some tests are failing in some environments.
...
See #20383 .
Built from https://develop.svn.wordpress.org/trunk@40661
git-svn-id: http://core.svn.wordpress.org/trunk@40524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 22:50:41 +00:00
Weston Ruter
3ce794812d
Widgets: Fix deferred rendering of controls for media widgets until container element fully expands.
...
Adds omitted call to `renderWhenAnimationDone()` which was missed when this code was copied from the Text widget.
Amends [40656].
See #40750 .
Built from https://develop.svn.wordpress.org/trunk@40660
git-svn-id: http://core.svn.wordpress.org/trunk@40523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 22:01:42 +00:00
Adam Silverstein
498613ccd7
Media: Fix improper use of jQuery hasClass
method.
...
The jQuery `hasClass` method accepts a class name without a prefix '.' (period). Remove an errant class name with a '.' in `wp-mediaelement.js` that broke the selector in certain circumstances.
Props kostasx, Presskopp.
Fixes #40354 .
Built from https://develop.svn.wordpress.org/trunk@40659
git-svn-id: http://core.svn.wordpress.org/trunk@40522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 20:53:45 +00:00
Adam Silverstein
8b60430aee
Customizer: Fix an issue with menu classes in the customizer preview.
...
In customizer preview, strip changeset uuid in menu urls before comparing with current url to determine menu item classes.
In the customizer, menu items now contain a changeset uuid as part of their urls. Strip the changeset uuid off the url before comparing with current url (which lacks the changeset uuid).
Props priyankabehera155, jipmoors.
Fixes #39758 .
Built from https://develop.svn.wordpress.org/trunk@40658
git-svn-id: http://core.svn.wordpress.org/trunk@40521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 20:35:43 +00:00
Adam Silverstein
cb2eac9e06
Users: Update name in toolbar when changing user display name.
...
When changing the user name in Users -> Your Profile, update the name displayed in the toolbar dynamically using JavaScript.
Props menakas, lukecavanagh, maguiar.
Fixes #40342 .
Built from https://develop.svn.wordpress.org/trunk@40657
git-svn-id: http://core.svn.wordpress.org/trunk@40520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 20:06:42 +00:00
Weston Ruter
020ffded1a
Widgets: Defer rendering controls for media widgets until container element fully expands.
...
Fixes issue with MediaElement.js failing to build the player in an animating container that doesn't have established dimensions.
Also utilizes MediaElement.js for the video widget instead of using a native player.
See #32417 .
Fixes #40750 .
Built from https://develop.svn.wordpress.org/trunk@40656
git-svn-id: http://core.svn.wordpress.org/trunk@40519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 19:56:43 +00:00
Adam Silverstein
d1ec180619
Taxonomy: Add a "delete" button on term edit page.
...
Add a 'delete' link next to the update button on the term edit screen so you can delete a term while you are reviewing it's details.
Props cklosows, bradt, ocean90, johnbillion, DrewAPicture, ryan, MatheusGimenez, maguiar.
Fixes #9777 .
Built from https://develop.svn.wordpress.org/trunk@40655
git-svn-id: http://core.svn.wordpress.org/trunk@40518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 19:26:41 +00:00
Andrew Ozz
6f4a1049a8
TinyMCE: do not override line-height
for paragraphs and headings in 4.6+, makes them hard to read.
...
Fixes #40743 .
Built from https://develop.svn.wordpress.org/trunk@40654
git-svn-id: http://core.svn.wordpress.org/trunk@40517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 18:06:40 +00:00
Andrea Fercia
705ecf3312
Customize: Make the media control buttons natural-width.
...
Natural-width buttons are better for translations, and don't feel as
overpowering as the half-width (and full-width) buttons.
Props melchoyce, timmydcrawford, afercia.
Fixes #40220 .
Built from https://develop.svn.wordpress.org/trunk@40653
git-svn-id: http://core.svn.wordpress.org/trunk@40516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 17:50:44 +00:00
Andrea Fercia
430422b0b7
Login and Registration: Add a filter to disable the initial auto-focus on the login screen.
...
Fixes #40301 .
Built from https://develop.svn.wordpress.org/trunk@40652
git-svn-id: http://core.svn.wordpress.org/trunk@40515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 17:12:46 +00:00
Konstantin Obenland
7328d561b1
Dashboard: Persist location for community events
...
Fixes a bug where cached events & location data was not accessible because the
cache key could not be regenerated without latitude and longitude information.
Discovered and fixed during #wcber contributor day.
Props soean, kubik-rubik, obenland.
See #40702 .
Built from https://develop.svn.wordpress.org/trunk@40651
git-svn-id: http://core.svn.wordpress.org/trunk@40514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 15:53:46 +00:00
Joe McGill
2b206fa18d
Improve wording of the AYS warning when permanently deleting uploads, tags, posts.
...
This is a follow up on [40283], which cleans up the wording.
Props azaozz, swissspidy, ocean90.
Fixes #39712 .
Built from https://develop.svn.wordpress.org/trunk@40650
git-svn-id: http://core.svn.wordpress.org/trunk@40513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 12:50:42 +00:00
Dominik Schilling
b43250116f
Import: Replace assert()
calls with PHPUnit's assertTrue()
method.
...
Calling `assert()` with a string argument will be deprecated in PHP 7.2.
See #40109 .
Built from https://develop.svn.wordpress.org/trunk@40649
git-svn-id: http://core.svn.wordpress.org/trunk@40512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 07:38:41 +00:00
Andrea Fercia
8a07db035d
Add missing semicolons after [40646].
...
See #40453 .
Built from https://develop.svn.wordpress.org/trunk@40648
git-svn-id: http://core.svn.wordpress.org/trunk@40511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 07:05:41 +00:00
Andrea Fercia
55b6ee7e56
Media: Clean-up some MediaElementJS CSS: no more needed after [40642].
...
See #40707 , #32417 , #39994 , #39995 , #30281 .
Built from https://develop.svn.wordpress.org/trunk@40647
git-svn-id: http://core.svn.wordpress.org/trunk@40510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-12 07:00:45 +00:00
Andrea Fercia
bab7eb143e
Accessibility: Change the "Show details" links in the update core screen to buttons.
...
These controls toggle the visibility of the update progress: they perform an action
therefore they should be buttons. Also:
- uses `aria-expanded` to communicate the toggle button state
- removes some inline JavaScript
- when clicking the toggle buttons, the progress details get moved with JavaScript after the button: this helps users of assistive technologies in finding them and makes the UI a bit more intuitive
Props Cheffheid, afercia.
See #26504 .
Fixes #40453 .
Built from https://develop.svn.wordpress.org/trunk@40646
git-svn-id: http://core.svn.wordpress.org/trunk@40507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 23:50:41 +00:00
Andrew Ozz
8c46657c9d
TinyMCE: update to 4.6.1. Changelog: https://www.tinymce.com/docs/changelog/#version461-may102017
...
Fixes #40727 .
Built from https://develop.svn.wordpress.org/trunk@40645
git-svn-id: http://core.svn.wordpress.org/trunk@40506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 23:12:40 +00:00
Andrew Ozz
da92cce494
TinyMCE: prevent removing of the temp link element when opening the advanced link dialog to insert new link.
...
Part props figureone for finding the cause.
Fixes #40558 .
Built from https://develop.svn.wordpress.org/trunk@40644
git-svn-id: http://core.svn.wordpress.org/trunk@40505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 23:04:40 +00:00
Andrea Fercia
274596b8ef
Accessibility: Add "(opens in a new window)" screen reader text to the "News-Nearby Events" dashboard widget footer links.
...
- standardizes similar messages in core to always use `(opens in a new window)`
- adds translators comments
- hides the dashicons with `aria-hidden="true"`, see #40428
Fixes #40733 .
Built from https://develop.svn.wordpress.org/trunk@40643
git-svn-id: http://core.svn.wordpress.org/trunk@40504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 22:47:41 +00:00
Andrea Fercia
691d649329
Media: Remove the custom styling for the MediaElementJS controls offscreen text.
...
This offscreen text is not meant to be revealed on focus and just acts as fallback
for assistive technologies that don't support `aria-label` and `role="slider"`.
Also, revealing it on focus has proven over time to be very fragile and to cause
unexpected layout issues.
See #30281 .
Fixes #40707 .
Built from https://develop.svn.wordpress.org/trunk@40642
git-svn-id: http://core.svn.wordpress.org/trunk@40503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 22:29:42 +00:00
Weston Ruter
26a5058f43
Widgets: Utilize WP REST API oEmbed proxy endpoint in media widgets.
...
Props timmydcrawford.
See #32417 , #40450 .
Built from https://develop.svn.wordpress.org/trunk@40641
git-svn-id: http://core.svn.wordpress.org/trunk@40502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 21:24:42 +00:00
Weston Ruter
31d4d81039
Widgets: Introduce media widgets for images, audio, and video with extensible base for additional media widgets in the future.
...
The last time a new widget was introduced, Vuvuzelas were a thing, Angry Birds started taking over phones, and WordPress stopped shipping with Kubrick. Seven years and 17 releases without new widgets have been enough, time to spice up your sidebar!
Props westonruter, melchoyce, obenland, timmydcrawford, adamsilverstein, gonom9, wonderboymusic, Fab1en, DrewAPicture, sirbrillig, joen, matias, samikeijonen, afercia, celloexpressions, designsimply, michelleweber, ranh, kjellr, karmatosed.
Fixes #32417 , #39993 , #39994 , #39995 .
Built from https://develop.svn.wordpress.org/trunk@40640
git-svn-id: http://core.svn.wordpress.org/trunk@40501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 21:11:44 +00:00
Pascal Birchler
763f09fb7e
Upgrade/Install: After [40638], make sure wp_is_file_mod_allowed()
actually returns the right value.
...
See #38673 .
Built from https://develop.svn.wordpress.org/trunk@40639
git-svn-id: http://core.svn.wordpress.org/trunk@40500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:54:43 +00:00
Pascal Birchler
33047ba14e
Upgrade/Install: After [40394], rename wp_disallow_file_mods()
to wp_is_file_mod_allowed()
.
...
This makes it more clear what this function is about.
Props Mte90.
Fixes #38673 .
Built from https://develop.svn.wordpress.org/trunk@40638
git-svn-id: http://core.svn.wordpress.org/trunk@40499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:24:41 +00:00
Dominik Schilling
77858f4b92
KSES: Support 'tag' => true
as a shorthand for 'tag' => array()
in wp_kses_attr()
.
...
`Automatic_Upgrader_Skin::feedback()` had always assumed that this is already the case, now it is.
See #20017 .
Fixes #40680 .
Built from https://develop.svn.wordpress.org/trunk@40637
git-svn-id: http://core.svn.wordpress.org/trunk@40498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:23:43 +00:00
Pascal Birchler
9af735e863
Themes: Avoid PHP warnings in the admin when no theme directory exists.
...
Props iseulde, chris_dev, swissspidy.
Fixes #35521 .
Built from https://develop.svn.wordpress.org/trunk@40636
git-svn-id: http://core.svn.wordpress.org/trunk@40497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:21:44 +00:00
Pascal Birchler
0b1e3a05f7
Posts, Post Types: Add initial tests for get_post_type_labels()
.
...
See #38218 .
Fixes #38157 .
Built from https://develop.svn.wordpress.org/trunk@40635
git-svn-id: http://core.svn.wordpress.org/trunk@40496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:19:42 +00:00
Pascal Birchler
fc1350ebe5
Administration: Ensure validateForm
also validates other input fields.
...
With this change, textareas and select inputs will be checked as well.
Props shadyvb.
Fixes #37540 .
Built from https://develop.svn.wordpress.org/trunk@40634
git-svn-id: http://core.svn.wordpress.org/trunk@40495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:18:42 +00:00
Dominik Schilling
0cd74a6d6e
Plugins: Don't strip line breaks and blockquote elements in the plugin information modal.
...
Fixes #40679 .
Built from https://develop.svn.wordpress.org/trunk@40633
git-svn-id: http://core.svn.wordpress.org/trunk@40494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:16:42 +00:00
Pascal Birchler
c000e99d6f
Mail: Ensure entities are decoded in email change notifications on Multisite.
...
Adds new tests to ensure this bug does not pop up again.
Props stephenharris.
Fixes #40015 .
Built from https://develop.svn.wordpress.org/trunk@40632
git-svn-id: http://core.svn.wordpress.org/trunk@40493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 19:15:44 +00:00
Weston Ruter
40ebb188cd
Widgets: Extend the Text widget with TinyMCE.
...
Introduces rich text formatting: bold, italic, lists, links.
Props westonruter, azaozz, timmydcrawford, obenland, melchoyce.
See #35760 .
Fixes #35243 .
Built from https://develop.svn.wordpress.org/trunk@40631
git-svn-id: http://core.svn.wordpress.org/trunk@40492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 18:55:43 +00:00
James Nylen
8561cb0516
REST API: Update wp-api.js
fixtures after string changes.
...
See #39178 .
Built from https://develop.svn.wordpress.org/trunk@40630
git-svn-id: http://core.svn.wordpress.org/trunk@40491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 18:41:41 +00:00
James Nylen
ace96e26aa
REST API: Tests: Remove and prohibit errors when generating wp-api.js
fixtures.
...
During a PHPUnit test suite run, a file named `wp-api-generated.js` is created which contains some response objects that serve as fixtures for the `wp-api.js` client unit tests.
Previously, some of these API responses were actually error objects, which isn't what we want for testing. This commit fixes the existing error responses and prevents this situation in the future.
Fixes #40734 .
Built from https://develop.svn.wordpress.org/trunk@40629
git-svn-id: http://core.svn.wordpress.org/trunk@40490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 18:32:43 +00:00
James Nylen
589c4b4b2d
REST API: Add endpoint for proxying requests to external oEmbed providers.
...
This endpoint is a prerequisite for the media widgets work (see https://github.com/xwp/wp-core-media-widgets ).
Also use the new endpoint in the media modal instead of the `parse-embed` AJAX action.
Props westonruter, timmydcrawford, swissspidy, jnylen0.
Fixes #40450 .
Built from https://develop.svn.wordpress.org/trunk@40628
git-svn-id: http://core.svn.wordpress.org/trunk@40489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 18:18:46 +00:00
Weston Ruter
2353930f90
Customize: Wait for processing
state to clear before starting to captureSettingModifiedDuringSave
.
...
See #32941 .
Fixes #40729 .
Built from https://develop.svn.wordpress.org/trunk@40627
git-svn-id: http://core.svn.wordpress.org/trunk@40488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 06:42:43 +00:00
Peter Wilson
746edb23f2
Emoji: Update Twemoji to version 2.2.5
...
Updates Twemoji and adds a second Emoji 4 test to include a shrugging man. Emoji 4 is being implemented gradually, while some browsers now support the female technologist, the indifferent shrugging man is breaking things with his presence.
Props peterwilsoncc, pento for code review.
Fixes #40615 .
Built from https://develop.svn.wordpress.org/trunk@40626
git-svn-id: http://core.svn.wordpress.org/trunk@40487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 04:26:41 +00:00
Andrew Ozz
57ef33fa2a
Editor: manually trigger change
event when text is modified from JS.
...
Props westonruter.
Fixes #40726 .
Built from https://develop.svn.wordpress.org/trunk@40615
git-svn-id: http://core.svn.wordpress.org/trunk@40485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 00:29:41 +00:00
Gary Pendergast
59c721dda0
Build/Test: Revert that failing test.
...
Now that Travis has confirmed that it is sending messages to Slack when a test fails, we no longer need a failing test.
The failing test added in [40613] is reverted, as Travis has failed to fail at notifying us about failing tests.
See #40712 .
Built from https://develop.svn.wordpress.org/trunk@40614
git-svn-id: http://core.svn.wordpress.org/trunk@40484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 00:16:41 +00:00
Gary Pendergast
33e2f5fe9a
Build/Test: Add an intentionally failing test.
...
To ensure that Travis is sending messages to Slack, a test needs to fail, so here's a failing test.
This failing test (and no other failing tests) will be reverted once Travis confirms that it isn't failing to message Slack about failing tests.
See #40712 .
Built from https://develop.svn.wordpress.org/trunk@40613
git-svn-id: http://core.svn.wordpress.org/trunk@40483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-10 23:37:43 +00:00
Felix Arntz
0f4725a0e3
Multisite: Adjust site count of the correct network after having created a new site.
...
Prior to this change, after creating a site, the network site count was always refreshed on the current network, regardless of whether the site was created on a different network. With the recent changes, particularly [40591], it is now possible to update the site count for a specific `$network_id`, so this changeset makes use of the new parameter.
Fixes #38699 .
Built from https://develop.svn.wordpress.org/trunk@40612
git-svn-id: http://core.svn.wordpress.org/trunk@40482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-10 23:22:42 +00:00