Andrew Ozz
dd0d110520
TinyMCE: update to 4.6.0. Has many new features and bug fixes, changelog: https://www.tinymce.com/docs/changelog/#version460-may42017 .
...
Fixes #40690 .
Built from https://develop.svn.wordpress.org/trunk@40583
git-svn-id: http://core.svn.wordpress.org/trunk@40453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-08 05:32:46 +00:00
Andrea Fercia
98402b7c15
Administration: Restore missing spinner when installing a new language.
...
Fixes #40478 .
Built from https://develop.svn.wordpress.org/trunk@40579
git-svn-id: http://core.svn.wordpress.org/trunk@40449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-07 12:01:42 +00:00
Pascal Birchler
064e62cbea
Cron API: Add a new wp_doing_cron()
helper function.
...
This replaces `DOING_CRON` checks via the constant.
Props tfrommen.
Fixes #39591 .
Built from https://develop.svn.wordpress.org/trunk@40575
git-svn-id: http://core.svn.wordpress.org/trunk@40445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-06 14:30:40 +00:00
Andrea Fercia
1ca3b70929
Accessibility: Avoid a keyboard trap on the date and time custom format settings.
...
Using the `focus` event on the date and time custom format fields made impossible
to navigate through all the form fields using only the keyboard without actually
selecting the custom format setting. Instead, using `click` and `input` preserves
the original functionality when using any kind of pointing or input device.
Fixes #40515 .
Built from https://develop.svn.wordpress.org/trunk@40568
git-svn-id: http://core.svn.wordpress.org/trunk@40436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-02 20:03:42 +00:00
Andrea Fercia
f1be128cde
Widgets: Improve the News dashboard widget no-js notice.
...
In the rare case this notice was displayed, it was unstyled. Uses the notice
error style to make it prettier and consistent with other no-js notices.
Also, some CSS clean-up.
Fixes #40529 .
Built from https://develop.svn.wordpress.org/trunk@40556
git-svn-id: http://core.svn.wordpress.org/trunk@40425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-25 16:42:44 +00:00
Andrea Fercia
1d739a0925
Accessibility: Make some Widgets buttons real buttons.
...
Links used as UI controls that behave like buttons, should be buttons.
- changes the widgets "toggle", "Delete", and "Close" links to buttons
- uses `aria-expanded` to announce the state of the toggle buttons
- increases a bit the clickable area of the toggle
- ensures the "circular focus" doesn't get cut-off in some browsers by centering the toggle arrows
- uses a `<span>` element with an `aria-hidden` attribute to hide CSS generated font icons from assistive technologies
- standardizes on `.toggle-indicator:before` rather than `:after`
- changes two `#f00` reds in `#dc3232`, see #35622
Fixes #31476 .
Built from https://develop.svn.wordpress.org/trunk@40480
git-svn-id: http://core.svn.wordpress.org/trunk@40356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-19 21:14:44 +00:00
Andrew Ozz
d0e4448257
Editor: Provide API for the editor to be dynamically instantiated via JS. First run.
...
See: #35760
Built from https://develop.svn.wordpress.org/trunk@40476
git-svn-id: http://core.svn.wordpress.org/trunk@40352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-19 02:38:44 +00:00
Sergey Biryukov
9fb2e79b57
Posts, Post Types: In wp_check_post_lock()
, check if the user with lock exists and return false otherwise.
...
Props arshidkv12, 1naveengiri.
Fixes #39888 .
Built from https://develop.svn.wordpress.org/trunk@40424
git-svn-id: http://core.svn.wordpress.org/trunk@40322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-13 23:09:43 +00:00
Sergey Biryukov
bef3ff1377
Posts, Post Types: Improve the docs for wp_check_post_lock()
and wp_set_post_lock()
.
...
See #39888 .
Built from https://develop.svn.wordpress.org/trunk@40423
git-svn-id: http://core.svn.wordpress.org/trunk@40321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-13 23:02:42 +00:00
Sergey Biryukov
902b91400d
Administration: Add "(link opens in a new window)" as a screen reader text for "Preview" link on Edit Post screen.
...
Props rianrietveld.
Fixes #40185 .
Built from https://develop.svn.wordpress.org/trunk@40422
git-svn-id: http://core.svn.wordpress.org/trunk@40320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-13 22:42:43 +00:00
Felix Arntz
45b64ba2ff
Multisite: Replace unnecessary is_super_admin()
check when setting up the initial network.
...
When using `is_super_admin()` in a non-multisite environment, the function is supposed to check for administrator capabilities. The process of querying all users and filtering them with that function can be optimized by only querying users with the administrator role instead.
Fixes #40406 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@40406
git-svn-id: http://core.svn.wordpress.org/trunk@40313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 22:00:43 +00:00
Felix Arntz
9354ea683f
Multisite: Introduce an upgrade_network
capability.
...
Prior to this change, a mix of `is_super_admin()` calls and `manage_network` capability checks was used to determine whether the current user could upgrade the network. With this changeset a dedicated capability is introduced that allows more granular handling.
Props dhanendran for the original patch.
Fixes #39205 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@40404
git-svn-id: http://core.svn.wordpress.org/trunk@40311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 21:11:43 +00:00
Joe McGill
4e1f22bf78
Fix broken audio/video functions when sanitizing ID3 data
...
This fixes a bug where running `wp_kses_post_deep()` on all the ID3
tag data corrupted blob data.
Fixes #40075 , #40085 .
Built from https://develop.svn.wordpress.org/trunk@40400
git-svn-id: http://core.svn.wordpress.org/trunk@40307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 01:28:47 +00:00
Pascal Birchler
8473f9ef66
Upgrade/Install: Introduce wp_disallow_file_mods()
helper function.
...
This is a wrapper around the checks for the `DISALLOW_FILE_MODS` constant to determine whether file modifications are disallowed.
Props MaximeCulea.
Fixes #38673 .
Built from https://develop.svn.wordpress.org/trunk@40394
git-svn-id: http://core.svn.wordpress.org/trunk@40301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-07 14:36:50 +00:00
John Blackbourn
0c2338fab2
Networks and Sites: Align the display of site statuses on the Sites listing screen with those of posts on the Posts listing screen.
...
Fixes #40290
Built from https://develop.svn.wordpress.org/trunk@40393
git-svn-id: http://core.svn.wordpress.org/trunk@40300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-07 13:51:43 +00:00
Sergey Biryukov
f884d7973b
Posts, Post Types: Introduce post_date_column_status
filter for post status text in list tables' Date column.
...
Props pbearne.
Fixes #39545 .
Built from https://develop.svn.wordpress.org/trunk@40361
git-svn-id: http://core.svn.wordpress.org/trunk@40268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-01 14:07:44 +00:00
Jeremy Felt
fa3dc867e7
Multisite: Add deleted_blog
action after site has been deleted.
...
Props pauldewouters, johnjamesjacoby.
Fixes #25584 .
Built from https://develop.svn.wordpress.org/trunk@40351
git-svn-id: http://core.svn.wordpress.org/trunk@40258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-30 04:31:44 +00:00
Sergey Biryukov
633ce094a1
Taxonomy: Fix typo in $aria_checked
variable name in Walker_Category_Checklist::start_el()
.
...
Props dhanendran.
Fixes #40295 .
Built from https://develop.svn.wordpress.org/trunk@40348
git-svn-id: http://core.svn.wordpress.org/trunk@40255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-29 11:22:47 +00:00
John Blackbourn
37a638ae8a
Users: Don't push the current user's role to the top of the list in wp_dropdown_roles()
.
...
This brings consistency to the order in which roles are displayed in the `Roles` dropdown when editing users.
Props bor0
Fixes #40162
Built from https://develop.svn.wordpress.org/trunk@40323
git-svn-id: http://core.svn.wordpress.org/trunk@40230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-24 14:53:46 +00:00
Weston Ruter
84ed6f665f
Customize: Prevent links to customize.php
from being generated which have query vars from wp_removable_query_args()
present.
...
Props dlh.
See #23367 , #32692 .
Fixes #31850 .
Built from https://develop.svn.wordpress.org/trunk@40313
git-svn-id: http://core.svn.wordpress.org/trunk@40220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-22 23:04:42 +00:00
Sergey Biryukov
6a2b38ca6c
Docs: Add description for $mode
global in WP_MS_Sites_List_Table
and WP_MS_Users_List_Table
.
...
Fixes #40208 .
Built from https://develop.svn.wordpress.org/trunk@40310
git-svn-id: http://core.svn.wordpress.org/trunk@40217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-22 03:48:42 +00:00
Sergey Biryukov
0b7148ebbb
Docs: Add description for $mode
global in WP_Media_List_Table
and WP_Posts_List_Table
.
...
See #40208 .
Built from https://develop.svn.wordpress.org/trunk@40309
git-svn-id: http://core.svn.wordpress.org/trunk@40216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-22 03:47:07 +00:00
Sergey Biryukov
e51bc5fb6b
Docs: Add missing @global
entry for list table view mode in WP_Screen::render_view_mode()
.
...
Props priyankabehera155.
See #40208 .
Built from https://develop.svn.wordpress.org/trunk@40308
git-svn-id: http://core.svn.wordpress.org/trunk@40215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-22 03:46:28 +00:00
Sergey Biryukov
127a2c9998
Docs: Add missing @global
entry for list table view mode in wp_ajax_inline_save()
.
...
Props priyankabehera155.
See #40208 .
Built from https://develop.svn.wordpress.org/trunk@40307
git-svn-id: http://core.svn.wordpress.org/trunk@40214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-22 03:45:45 +00:00
Pascal Birchler
3e189479a7
List Tables: Hide 'Empty Trash' and 'Empty Spam' buttons when view is already empty.
...
Props ivantedja, Presskopp, printsachen1, Jaydeep Rami, mathieuhays, cazm.
Fixes #38341 .
Built from https://develop.svn.wordpress.org/trunk@40297
git-svn-id: http://core.svn.wordpress.org/trunk@40204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-17 16:54:42 +00:00
Pascal Birchler
62061bab56
Multisite: Ensure first page/post/comment content is not empty when setting up a new site.
...
This prevents creating page without any content when the options are populated with an empty string.
Props shadyvb.
Fixes #40036 .
Built from https://develop.svn.wordpress.org/trunk@40296
git-svn-id: http://core.svn.wordpress.org/trunk@40203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-17 15:49:42 +00:00
John Blackbourn
263831a72d
Press This: Verify intent before fetching in-page resources using Press This.
...
Props vortfu
Built from https://develop.svn.wordpress.org/trunk@40195
git-svn-id: http://core.svn.wordpress.org/trunk@40134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-06 13:55:41 +00:00
Jeremy Felt
28f838ca3e
Validate video and audio metadata.
...
Built from https://develop.svn.wordpress.org/trunk@40148
git-svn-id: http://core.svn.wordpress.org/trunk@40087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-06 08:01:43 +00:00
Joe McGill
d6bec79fe7
Media: Keep PDF previews from overwriting files.
...
Since support for PDF previews were added in [38949], it's possible
that the generated image file could overwrite an existing image file
with the same name. This uses `wp_unique_filename()` to avoid this
issue and adds a '-pdf' identifier on the end of filenames.
Props gitlost, derosj, mikeschroder, joemcgill.
Fixes #39875 . See #31050 .
Built from https://develop.svn.wordpress.org/trunk@40130
git-svn-id: http://core.svn.wordpress.org/trunk@40067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-27 15:39:47 +00:00
John Blackbourn
9e095f0791
Mail: Ensure entities in the site title are decoded when used in the body of the new user email.
...
Props ajoah
Fixes #39446
Built from https://develop.svn.wordpress.org/trunk@40127
git-svn-id: http://core.svn.wordpress.org/trunk@40064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-26 22:20:44 +00:00
Andrea Fercia
ca44bbd134
Buttons: Fix a few .button-link
glitches after [40052].
...
Removes some stray underlines. Explicitly set the button text to be left aligned.
Props Cheffheid, f.staude, Presskopp.
See #34242 .
Fixes #35126 , #38712 .
Built from https://develop.svn.wordpress.org/trunk@40059
git-svn-id: http://core.svn.wordpress.org/trunk@39996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-14 18:42:46 +00:00
Andrea Fercia
d33301821b
Buttons: Improve the .button-link
CSS class for link-like buttons.
...
Updates `.button-link` adding color and underline to make link-like buttons look
like links by default. Introduces `.button-link-delete` as a modifier, stackable
CSS class for red button-links.
Props Cheffheid, afercia.
See #34242 .
Fixes #35126 .
Built from https://develop.svn.wordpress.org/trunk@40052
git-svn-id: http://core.svn.wordpress.org/trunk@39989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-09 16:47:44 +00:00
Sergey Biryukov
cb46332a82
Text Changes: Remove periods from checkbox labels in Discussion meta box to improve consistency throughout the admin.
...
Checkbox labels generally don't have periods, unless it's a complete sentence.
Props juhise.
Fixes #33780 .
Built from https://develop.svn.wordpress.org/trunk@40032
git-svn-id: http://core.svn.wordpress.org/trunk@39969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-31 07:05:39 +00:00
Sergey Biryukov
8e84504401
Link Manager: Correct version number for _deprecated_argument()
in xfn_check()
.
...
Props grapplerulrich.
Fixes #39737 .
Built from https://develop.svn.wordpress.org/trunk@40029
git-svn-id: http://core.svn.wordpress.org/trunk@39966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-29 22:14:40 +00:00
Sergey Biryukov
9d7ea04936
I18N: Merge similar strings in _deprecated_argument()
calls.
...
Add translator comments.
Props ramiy, SergeyBiryukov.
Fixes #39020 .
Built from https://develop.svn.wordpress.org/trunk@40028
git-svn-id: http://core.svn.wordpress.org/trunk@39965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-29 11:50:41 +00:00
Andrew Ozz
69c29935d5
TinyMCE: improve the previews for embedded WordPress posts:
...
- Add option to force a sandbox iframe in wpview.
- Use it to show the embedded post preview.
- Remove the deprecated `wpembed` plugin.js
Fixes #39513 .
Built from https://develop.svn.wordpress.org/trunk@40019
git-svn-id: http://core.svn.wordpress.org/trunk@39956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-27 04:25:44 +00:00
Dominik Schilling
21264a31e0
Press This: Do not show Categories & Tags UI for users who cannot assign terms to posts anyways.
...
Built from https://develop.svn.wordpress.org/trunk@39968
git-svn-id: http://core.svn.wordpress.org/trunk@39905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 13:58:44 +00:00
John Blackbourn
4482f92070
Posts, Post Types: When using Excerpt mode on the Posts list table, ensure the excerpt output matches what was manually entered into the Excerpt field.
...
Built from https://develop.svn.wordpress.org/trunk@39956
git-svn-id: http://core.svn.wordpress.org/trunk@39893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 13:41:44 +00:00
Sergey Biryukov
d10f451770
Docs: Add missing file header to wp-admin/includes/noop.php
, introduced in [34037].
...
Props carl-alberto.
Fixes #39690 .
Built from https://develop.svn.wordpress.org/trunk@39950
git-svn-id: http://core.svn.wordpress.org/trunk@39887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-25 23:10:43 +00:00
Felix Arntz
36fa7f72c0
Multisite: Replace is_super_admin()
with manage_network_users
when trying to import new users.
...
Props bhargavbhandari90.
Fixes #39212 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39945
git-svn-id: http://core.svn.wordpress.org/trunk@39882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 11:39:40 +00:00
Sergey Biryukov
4fbcfe3a8c
Docs: After [38672], update $type
parameter description for submit_button()
and get_submit_button()
.
...
Remove the mention of `secondary` and `delete` classes as core values, add `small` and `large`.
Props afercia.
Fixes #23477 .
Built from https://develop.svn.wordpress.org/trunk@39936
git-svn-id: http://core.svn.wordpress.org/trunk@39873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 20:37:42 +00:00
Felix Arntz
c22fea9120
Multisite: Replace is_super_admin()
with manage_network_users
when checking for users autocomplete capabilities.
...
Props ashokkumar24.
Fixes #39201 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39934
git-svn-id: http://core.svn.wordpress.org/trunk@39871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:43:42 +00:00
Felix Arntz
dd23a8f48c
Multisite: Do not check for is_super_admin()
when trying to set user settings.
...
The checks were introduced in [22256] to prevent user settings to be set for super admins that were not a member of the current site. However the latter should apply to any kind of user, so the `is_super_admin()` check is redundant. Furthermore, removing these checks is necessary for the ongoing effort to get rid of `is_super_admin()` checks in general.
Props chandrapatel for initial patch.
Fixes #39199 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39932
git-svn-id: http://core.svn.wordpress.org/trunk@39869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:33:41 +00:00
Sergey Biryukov
6f8644aeb2
Media: Pass the current attachment object to display_media_states
filter, for consistency with display_post_states
.
...
Props pbiron, chriseverson.
Fixes #39628 .
Built from https://develop.svn.wordpress.org/trunk@39926
git-svn-id: http://core.svn.wordpress.org/trunk@39863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 05:20:41 +00:00
Sergey Biryukov
371c072b38
Media: After [36837], check the correct theme modification name for custom logo in _media_states()
.
...
Props pbiron, mitraval192.
Fixes #39627 .
Built from https://develop.svn.wordpress.org/trunk@39925
git-svn-id: http://core.svn.wordpress.org/trunk@39862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-19 02:03:41 +00:00
Gary Pendergast
096b09d941
dbDelta: Ignore index subparts when checking for duplicate indices.
...
If index lengths change in table definitions, we don't recreate the index - instead, we throw a database error, as `dbDelta()` tries to create a new index with the same name.
It's better to leave the index as is, MySQL doesn't have an efficient process for resizing indices, and dropping/creating is a slow process which we don't want to trigger automatically.
Fixes #34870 .
Built from https://develop.svn.wordpress.org/trunk@39921
git-svn-id: http://core.svn.wordpress.org/trunk@39858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 04:01:42 +00:00
Sergey Biryukov
54001e2756
List Tables: Pass the $which
parameter to restrict_manage_posts
filter instance in WP_Media_List_Table
, missed in [37422].
...
Props wpsmith.
Fixes #38772 .
Built from https://develop.svn.wordpress.org/trunk@39917
git-svn-id: http://core.svn.wordpress.org/trunk@39854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 02:38:42 +00:00
Sergey Biryukov
4d546a12cf
I18N: Reference correct placeholder in a translator comment added in [30333].
...
See #30264 .
Built from https://develop.svn.wordpress.org/trunk@39908
git-svn-id: http://core.svn.wordpress.org/trunk@39845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 08:07:43 +00:00
Sergey Biryukov
327a11ad65
Docs: Use a consistent description for $plugin
parameter in various plugin API functions.
...
See #36333 .
Built from https://develop.svn.wordpress.org/trunk@39890
git-svn-id: http://core.svn.wordpress.org/trunk@39827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:16:41 +00:00
Sergey Biryukov
a989f0b168
Docs: Improve the DocBlock for validate_plugin()
.
...
Props theMikeD.
Fixes #36333 .
Built from https://develop.svn.wordpress.org/trunk@39889
git-svn-id: http://core.svn.wordpress.org/trunk@39826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 06:15:42 +00:00