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
Weston Ruter
e69b9b244c
Customize: Fix failure to collapse expanded sections and panels that become deactivated.
...
Improve jsdoc for `onChangeActive` function. Restores fix from [34557] which got dropped in [38648].
Props dlh, westonruter.
See #34391 , #33509 .
Fixes #39430 .
Built from https://develop.svn.wordpress.org/trunk@40304
git-svn-id: http://core.svn.wordpress.org/trunk@40211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-19 00:04:43 +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
Sergey Biryukov
e9f73b06b6
Docs: Correct the description for wp.updates.deleteTheme
.
...
Props MattyRob.
Fixes #40110 .
Built from https://develop.svn.wordpress.org/trunk@40279
git-svn-id: http://core.svn.wordpress.org/trunk@40194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-11 16:13:46 +00:00
Andrea Fercia
6944c8f3a6
List Tables: After [38703], [38706], and [40118], adjust the jQuery selector to make the selection of a range of checkboxes work again.
...
Unprop afercia.
Fixes #40056 .
Built from https://develop.svn.wordpress.org/trunk@40268
git-svn-id: http://core.svn.wordpress.org/trunk@40187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-10 19:14:46 +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
John Blackbourn
9092fd01e1
Taxonomy: Correct the formatting of HTML entities when generating the screen reader text for tag removal.
...
Props adamsilverstein
Built from https://develop.svn.wordpress.org/trunk@40181
git-svn-id: http://core.svn.wordpress.org/trunk@40120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-06 13:14:41 +00:00
Aaron Campbell
4d80f8b3e1
Plugins: Add file check to plugin deletions.
...
Built from https://develop.svn.wordpress.org/trunk@40169
git-svn-id: http://core.svn.wordpress.org/trunk@40108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-06 12: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
Boone Gorges
b6572af5d2
Taxonomy: Improve 'Parent' label when editing taxonomy terms.
...
Instead of the hardcoded 'Parent', use the `parent_item` label.
Props abrain, dlh.
Fixes #34545 .
Built from https://develop.svn.wordpress.org/trunk@40146
git-svn-id: http://core.svn.wordpress.org/trunk@40085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-03 02:54:42 +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
Sergey Biryukov
d303e3d9ca
Plugins: After [38703], adjust the selector for checkbox selection to account for nested tables.
...
Props afercia, swissspidy, reldev.
Fixes #39739 .
Built from https://develop.svn.wordpress.org/trunk@40118
git-svn-id: http://core.svn.wordpress.org/trunk@40055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-24 23:10:44 +00:00
Adam Silverstein
bc1fc91ec8
REST API: JS client - QUnit tests for custom namespace route discovery.
...
Add QUnit tests for the parsing of custom namespace routes. Add a custom schema fixture based on the `wp-js-widgets` plugin. Test that the client can parse the widget namespace in the schema and correctly construct the expected group of models and collections. Also includes a small unrelated QUnit fix to ensure nav-menu test passes when it is loaded without its tests executing as well as a small jshint fix, adding a missing semicolon since [40107].
Props jnylen0.
Fixes #39561 .
Built from https://develop.svn.wordpress.org/trunk@40109
git-svn-id: http://core.svn.wordpress.org/trunk@40046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-24 18:40:40 +00:00
Adam Silverstein
33286df4c1
Themes: enable browser history support in add new theme screen.
...
Enable history support for the new theme screen, including navigating theme details and closing the details modal. Theme selection is now also bookmark-able, so linking to a URL like `/wp-admin/theme-install.php?theme=twentyseventeen` correctly opens the theme preview.
Props dd32.
Fixes #36613 .
Built from https://develop.svn.wordpress.org/trunk@40107
git-svn-id: http://core.svn.wordpress.org/trunk@40044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-24 17:48:42 +00:00
Sergey Biryukov
c4e78a8d8b
About page: Remove autoplay
and loop
attributes on "Theme Starter Content", "Edit Shortcuts", and "Video Headers" videos, originally added as a part of [39512].
...
For UX and accessibility reasons, it's better to always avoid playing videos automatically.
Props bor0.
Fixes #39560 .
Built from https://develop.svn.wordpress.org/trunk@40089
git-svn-id: http://core.svn.wordpress.org/trunk@40026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-20 13:01:42 +00:00
Adam Silverstein
c7b217cee9
JavaScript: when starting Backbone history, stop if previously started.
...
Prevent a potential error condition if Backbone history is started by a plugin or theme before core tries to start it.
Props tfrommen.
Fixes #39612 .
Built from https://develop.svn.wordpress.org/trunk@40076
git-svn-id: http://core.svn.wordpress.org/trunk@40013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-17 22:00:42 +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
222ee437fe
Update/Install: Give context to "Deleted! string to allow for differentiation between theme and plugin translations.
...
Props swissspidy.
See #39747 . See #37290 .
Built from https://develop.svn.wordpress.org/trunk@40035
git-svn-id: http://core.svn.wordpress.org/trunk@39972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-31 09:59:40 +00:00
Sergey Biryukov
9264813949
Update/Install: Give context to some more install/update strings to allow for differentiation between theme and plugin translations.
...
Fixes #39747 . See #37290 .
Built from https://develop.svn.wordpress.org/trunk@40034
git-svn-id: http://core.svn.wordpress.org/trunk@39971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-31 09:27:41 +00:00
Sergey Biryukov
a6215fd8ac
I18N: Use a consistent translator comment ("accessibility text") for strings used in aria-label
attributes.
...
See #32000 .
Built from https://develop.svn.wordpress.org/trunk@40033
git-svn-id: http://core.svn.wordpress.org/trunk@39970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-31 08:55:41 +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
Pascal Birchler
b076f7e4a8
Plugins: Remove trailing pipe symbol in sub navigation after updating the last plugin.
...
Props sagarprajapati.
Fixes #39655 .
Built from https://develop.svn.wordpress.org/trunk@40025
git-svn-id: http://core.svn.wordpress.org/trunk@39962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-28 17:01:46 +00:00
Adam Silverstein
a6d772108d
Media: ensure JavaScript initialized when media edit screen is loaded directly.
...
Fix a JavaScript error when the media edit screen is loaded directly via a url such as `/wp-admin/post.php?post={post_id}&action=edit&image-editor`. Add a check in `imgLoaded` for `this.hold.sizer` which is set up during initialization and required for the cropping tool. Call `init` if this is undefined.
Props NoseGraze.
Fixes #38138 .
Built from https://develop.svn.wordpress.org/trunk@40020
git-svn-id: http://core.svn.wordpress.org/trunk@39957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-27 18:30:43 +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
Weston Ruter
b6281dbd75
Customize: Trim whitespace from nav menu item titles so that the underlying object's original title appears as input placeholder and in the control's title.
...
Whitespace is trimmed from titles in PHP when saved in any case, so this aligns the client-side behavior with what happens on the server.
Amends [38618].
See #38015 .
Fixes #39600 .
Built from https://develop.svn.wordpress.org/trunk@39994
git-svn-id: http://core.svn.wordpress.org/trunk@39931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-26 18:08:40 +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
82dc367cd4
Multisite: Replace is_super_admin()
with a proper capability check when showing a notice about WPLANG
.
...
In multisite, the notice is displayed to users that have the `manage_network_options` capability. In non-multisite, the notice is displayed to users with the `manage_options` capability.
Props Dhaval Parekh.
Fixes #39207 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39947
git-svn-id: http://core.svn.wordpress.org/trunk@39884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 13:13:41 +00:00
Felix Arntz
34ad21bcfa
Multisite: Remove unnecessary is_super_admin()
check when adding an existing user to a site.
...
Prior to this change, a super admin user that is added to a site who they are already a member of would still get reinvited.
Props supercoder.
Fixes #39220 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39946
git-svn-id: http://core.svn.wordpress.org/trunk@39883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 12:03: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
Felix Arntz
6fcb0e8b7f
Multisite: Replace is_super_admin()
with manage_network_users
when trying to change the role of oneself.
...
Props abhishek kaushik.
Fixes #39204 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39943
git-svn-id: http://core.svn.wordpress.org/trunk@39880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 11:04:44 +00:00
Sergey Biryukov
ca832f66f3
Text Changes: Add a period to the only wp_die()
message that didn't have it: "Invalid plugin page".
...
Props Presskopp.
Fixes #39664 .
Built from https://develop.svn.wordpress.org/trunk@39941
git-svn-id: http://core.svn.wordpress.org/trunk@39878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-22 02:33:42 +00:00
Sergey Biryukov
35d5918a1d
Posts, Post Types: Preserve author filter in list table after entering a page number in paging input.
...
Props sagarprajapati.
Fixes #39523 .
Built from https://develop.svn.wordpress.org/trunk@39938
git-svn-id: http://core.svn.wordpress.org/trunk@39875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-21 02:22:26 +00:00
Sergey Biryukov
8f0e75db16
Users: Preserve role filter in list table after entering a page number in paging input.
...
Props kailanitish90, sagarprajapati.
Fixes #39435 .
Built from https://develop.svn.wordpress.org/trunk@39937
git-svn-id: http://core.svn.wordpress.org/trunk@39874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-21 02:21:43 +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
41fc0c0f5a
Multisite: Replace is_super_admin()
with manage_network_users
when trying to add an existing user via username.
...
Props dhanendran.
Fixes #39202 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39935
git-svn-id: http://core.svn.wordpress.org/trunk@39872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:49:41 +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
6e5cd6d397
Multisite: Replace is_super_admin()
with manage_network_options
in wp-admin/options.php
.
...
Props sathyapulse.
Fixes #39200 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39933
git-svn-id: http://core.svn.wordpress.org/trunk@39870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:39:41 +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
Felix Arntz
c8de21c0c5
Multisite: Display correct scheme for the main site in site-info.php
.
...
Props greatislander.
Fixes #39365 .
Built from https://develop.svn.wordpress.org/trunk@39930
git-svn-id: http://core.svn.wordpress.org/trunk@39867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 17:03:41 +00:00
Adam Silverstein
8d8f5616b7
Menus: trigger an event when menu items are added or removed.
...
Fire a `menu-item-added` event after a menu item is added to the DOM. Fire a `menu-removing-item` event before a menu item is removed from the DOM. Enables hooking into and responding to menu changes.
Props welcher, adamsilverstein.
Fixes #31218 .
Built from https://develop.svn.wordpress.org/trunk@39928
git-svn-id: http://core.svn.wordpress.org/trunk@39865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-20 16:15:42 +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