Weston Ruter
ef882e918e
Customize: Prevent removal of underline upon hover/focus for nav menu deletion links.
...
Props monikarao.
Amends [38503].
See #37527 .
Fixes #39444 .
Built from https://develop.svn.wordpress.org/trunk@39677
git-svn-id: http://core.svn.wordpress.org/trunk@39617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 19:13:40 +00:00
Sergey Biryukov
d16bdab87d
Docs: Correct comment_email
duplicate hook reference in wp-admin/includes/class-wp-comments-list-table.php
.
...
Props keesiemeijer.
See #39371 .
Built from https://develop.svn.wordpress.org/trunk@39669
git-svn-id: http://core.svn.wordpress.org/trunk@39609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:21:41 +00:00
Sergey Biryukov
179a40d969
Docs: Add missing duplicate hook references in wp-admin/includes/ajax-actions.php
.
...
Props keesiemeijer.
See #39371 .
Built from https://develop.svn.wordpress.org/trunk@39668
git-svn-id: http://core.svn.wordpress.org/trunk@39608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-04 13:20:44 +00:00
Dion Hulse
05f07e13d9
Updates: Show the Authentication key settings after selecting the SSH transport in both the modal, and also on the plugin/theme updates screen.
...
Props afercia.
Fixes #39057 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39657
git-svn-id: http://core.svn.wordpress.org/trunk@39597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 07:44:41 +00:00
Dion Hulse
6066654967
Updates: Remove a stray "
from a tag.
...
Props afercia.
See #39057 .
Built from https://develop.svn.wordpress.org/trunk@39656
git-svn-id: http://core.svn.wordpress.org/trunk@39596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 07:42:42 +00:00
Peter Wilson
25e462dbe7
Taxonomy: Redirect to current taxonomy when adding a term without AJAX.
...
Fixes a regression in which adding terms via a full page refresh, ie without AJAX, would always redirect to the tags taxonomy.
Props szaqal21.
Fixes #39328 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39649
git-svn-id: http://core.svn.wordpress.org/trunk@39589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-30 03:11:42 +00:00
Dion Hulse
4efebd4b71
Filesystem: Add return
statement to WP_Filesystem_ftpsockets->rmdir
...
Props tymvie.
Fixes #39405 .
Built from https://develop.svn.wordpress.org/trunk@39644
git-svn-id: http://core.svn.wordpress.org/trunk@39584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-28 03:52:42 +00:00
Boone Gorges
a3ea7ea2e9
Taxonomy: Eliminate redundant and inaccurate dupe check when creating categories from post.php.
...
The `term_exists()` check is not needed because of existing dupe
checks in `wp_insert_term()`. Furthermore, `term_exists()` conflates
term names and sanitized slugs, so incorrectly marks terms like
'C' and 'C+' as duplicates of one another.
Props garyc40, SergeyBiryukov, kovshenin, MikeHansenMe.
Fixes #16567 .
Built from https://develop.svn.wordpress.org/trunk@39637
git-svn-id: http://core.svn.wordpress.org/trunk@39577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-23 03:11:40 +00:00
Weston Ruter
f7ba137f19
Customize: Fix visible edit shortcuts for wp_nav_menu()
instances using the menu
arg (such as in the Custom Menu widget) instead of the theme_location
arg.
...
Also fix logic for `focus-control-for-setting` handler to focus on the first control (lowest `priority` value) associated with a given setting instead of the last control encountered when iterating over all controls, as this ensures the first control in a `nav_menu` section is focused rather than the last one.
Props westonruter, sirbrillig.
See #27403 .
Fixes #39101 .
Built from https://develop.svn.wordpress.org/trunk@39622
git-svn-id: http://core.svn.wordpress.org/trunk@39562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-20 22:05:43 +00:00
Ella Iseulde Van Dorpe
c7988f1f03
Editor: Let the Add New link disappear in DFW mode.
...
The link was moved outside the heading in [38983].
Fixes #39313 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39619
git-svn-id: http://core.svn.wordpress.org/trunk@39559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-17 10:23:43 +00:00
Joe McGill
efb191c2ed
Media: Allow PDF fallbacks filter to process custom sizes.
...
This fixes an oversight in [39246], which added a hook for filtering
the array of sizes used for PDF thumbnails, but failed to provide a way
for sizes added through `add_image_size()` to be processed.
Props gitlost.
Fixes #39231 . See #38594 .
Built from https://develop.svn.wordpress.org/trunk@39617
git-svn-id: http://core.svn.wordpress.org/trunk@39557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-16 20:30:42 +00:00
John Blackbourn
4548b08236
General: Use interpolation instead of concatenation for all dynamic hook names.
...
This fixes the rendering of the hook names on developer.wordpress.org.
Props keesiemeijer
Fixes #39148
Built from https://develop.svn.wordpress.org/trunk@39600
git-svn-id: http://core.svn.wordpress.org/trunk@39540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-14 04:18:42 +00:00
James Nylen
505e135f4c
REST API: Add support for filename search in media endpoint.
...
In [38625], the functionality to search for attachments by filename was added
via the `posts_clauses` filter and the `_filter_query_attachment_filenames()`
function. This moves `_filter_query_attachment_filenames()` from
`wp-admin/includes/post.php` to `wp-includes/post.php` so that it can be
applied in the same manner in the REST API media endpoint.
Props jblz, tyxla.
Fixes #39092 .
Built from https://develop.svn.wordpress.org/trunk@39598
git-svn-id: http://core.svn.wordpress.org/trunk@39538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-13 14:09:42 +00:00
Felix Arntz
f704fc808a
Multisite: Handle capability check for removing oneself via map_meta_cap()
.
...
Site administrators should not be able to remove themselves from a site. This moves the enforcement of this rule from `wp-admin/users.php` to `remove_user_from_blog()` via the `remove_user` capability, which furthermore allows us to get rid of two additional clauses and their `is_super_admin()` checks in `wp-admin/users.php`. A unit test for the new behavior has been added.
Fixes #39063 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39588
git-svn-id: http://core.svn.wordpress.org/trunk@39528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-12 21:42:42 +00:00
Konstantin Obenland
ee36cf9214
Themes: Add missing square bracket in jQuery selector.
...
Fixes a bug in Safari where the UI wasn't updated after deleting a theme due to
the incomplete selector.
Props Hristo Sg.
Fixes #39246 .
Built from https://develop.svn.wordpress.org/trunk@39586
git-svn-id: http://core.svn.wordpress.org/trunk@39526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-12 09:32:41 +00:00
Weston Ruter
1b96e389c0
Customize: Fix inability to delete nav menus by preventing preview
filters from being added during customize_save
admin ajax request.
...
Also prevent setting `nav_menu_locations[...]` values to `NaN` which gets sent as `null`.
Amends [38810].
See #30937 .
Fixes #39103 .
Built from https://develop.svn.wordpress.org/trunk@39558
git-svn-id: http://core.svn.wordpress.org/trunk@39498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-10 06:30:46 +00:00
Weston Ruter
f1c383454b
Customize: Prevent scrolling custom_css
textarea to top when pressing tab.
...
Props tyxla, sstoqnov for testing, celloexpressions for testing.
See #38667 .
Fixes #39134 .
Built from https://develop.svn.wordpress.org/trunk@39557
git-svn-id: http://core.svn.wordpress.org/trunk@39497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-10 00:44:40 +00:00
Andrea Fercia
10819d629f
Accessibility: Remove inappropriate content from the Edit Categories and Edit Tags screens headings.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39553
git-svn-id: http://core.svn.wordpress.org/trunk@39493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-09 20:50:41 +00:00
Andrea Fercia
9d474c8206
Accessibility: Remove inappropriate content from the Edit Comments screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39552
git-svn-id: http://core.svn.wordpress.org/trunk@39492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-09 18:59:40 +00:00
Andrea Fercia
c05f1dc805
Accessibility: Remove inappropriate content from the Network screens headings.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39551
git-svn-id: http://core.svn.wordpress.org/trunk@39491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-09 18:57:42 +00:00
Weston Ruter
d94530e721
Customize: Collapse available nav menu items panel when clicking outside over preview or over existing items.
...
Props rockwell15.
Fixes #38953 .
Built from https://develop.svn.wordpress.org/trunk@39548
git-svn-id: http://core.svn.wordpress.org/trunk@39488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-09 06:16:40 +00:00
Andrea Fercia
76a5b4f3c2
Accessibility: Remove inappropriate content from the Menus screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39543
git-svn-id: http://core.svn.wordpress.org/trunk@39483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 23:47:43 +00:00
Andrea Fercia
40e303237b
Accessibility: Remove inappropriate content from the old Edit Media screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39542
git-svn-id: http://core.svn.wordpress.org/trunk@39482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 23:30:40 +00:00
Andrea Fercia
2d76e0dfb2
Accessibility: Remove inappropriate content from the Widgets screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39541
git-svn-id: http://core.svn.wordpress.org/trunk@39481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 22:18:40 +00:00
Felix Arntz
da4cc4d9e2
Multisite: Replace is_super_admin()
with update_core
for update permissions.
...
Fixes #39060 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39540
git-svn-id: http://core.svn.wordpress.org/trunk@39480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 22:14:42 +00:00
Felix Arntz
72380176dc
Multisite: Remove redundant is_super_admin()
when checking for edit_others_posts
.
...
The super admin on multisite as well as the administrator on non-multisite both have this capability already. For custom post types using different capabilities this change ensures that only users with that capability have permissions.
Fixes #39059 . See #37616 .
Built from https://develop.svn.wordpress.org/trunk@39539
git-svn-id: http://core.svn.wordpress.org/trunk@39479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 22:09:42 +00:00
Andrea Fercia
57c2604200
Accessibility: Remove inappropriate content from the Edit User screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39538
git-svn-id: http://core.svn.wordpress.org/trunk@39478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 22:08:43 +00:00
Andrea Fercia
2c227839d4
Accessibility: Remove inappropriate content from the Link Manager screens headings.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39537
git-svn-id: http://core.svn.wordpress.org/trunk@39477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 20:18:46 +00:00
Andrea Fercia
64f63499f8
Accessibility: Remove inappropriate content from the Add Plugins screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39536
git-svn-id: http://core.svn.wordpress.org/trunk@39476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 19:06:41 +00:00
Andrea Fercia
993f895c29
Accessibility: Remove inappropriate content from the Plugins screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39535
git-svn-id: http://core.svn.wordpress.org/trunk@39475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 18:48:40 +00:00
Andrea Fercia
87882d0463
Accessibility: Remove inappropriate content from the Users screen heading.
...
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39534
git-svn-id: http://core.svn.wordpress.org/trunk@39474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 18:29:38 +00:00
John Blackbourn
16371b99d8
Users: Style the super admin message on the user editing screen as a notice, not a success message.
...
Fixes #39131
Built from https://develop.svn.wordpress.org/trunk@39531
git-svn-id: http://core.svn.wordpress.org/trunk@39471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-07 01:28:40 +00:00
Andrea Fercia
a9600d1a53
Accessibility: Remove inappropriate content from the Themes screen heading.
...
Props joedolson.
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39528
git-svn-id: http://core.svn.wordpress.org/trunk@39468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 23:12:41 +00:00
Andrea Fercia
c1f59f9fe3
Accessibility: Remove inappropriate content from the Add Themes screen heading.
...
Props joedolson.
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39527
git-svn-id: http://core.svn.wordpress.org/trunk@39467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 22:24:41 +00:00
Andrea Fercia
26ef4bd86d
Accessibility: Remove inappropriate content from the Media Library screens headings.
...
Props joedolson.
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@39526
git-svn-id: http://core.svn.wordpress.org/trunk@39466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 22:18:42 +00:00
Helen Hou-Sandí
ab3bca05c8
About page: Update video and REST API reference URLs.
...
props ocean90, kadamwhite, coffee2code.
see #38616 .
Built from https://develop.svn.wordpress.org/trunk@39522
git-svn-id: http://core.svn.wordpress.org/trunk@39462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 18:24:41 +00:00
Helen Hou-Sandí
9c023fc883
Remove 4.7 cruft from $_old_files
.
...
see #39113 .
Built from https://develop.svn.wordpress.org/trunk@39520
git-svn-id: http://core.svn.wordpress.org/trunk@39460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 17:17:41 +00:00
Helen Hou-Sandí
3dea25bcd9
About page: Bump image versions because CDN caching.
...
props pento.
see #38616 .
Built from https://develop.svn.wordpress.org/trunk@39517
git-svn-id: http://core.svn.wordpress.org/trunk@39457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 07:13:41 +00:00
Joe McGill
da48e4ba1e
About page: Resposive images and CDN media URLs.
...
This adds `srcset` and `sizes` to the about page images, including
art direction, via `<picture>` for the lead Twenty Seventeen image.
This also replaces URLs for all images and feature videos to their
CDN locations on s.w.org.
Props helen, pento, joemcgill.
Fixes #38616 .
Built from https://develop.svn.wordpress.org/trunk@39514
git-svn-id: http://core.svn.wordpress.org/trunk@39454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 06:55:41 +00:00
Helen Hou-Sandí
f336d4c8ea
About page: Imagery and beautification.
...
Still to come: responsive images, optimized videos, and CDN URLs.
props melchoyce, helen, ramiabraham.
see #38616 .
Built from https://develop.svn.wordpress.org/trunk@39512
git-svn-id: http://core.svn.wordpress.org/trunk@39452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-06 04:01:45 +00:00
Weston Ruter
6a3de4d857
Customize: Ensure changeset_uuid
query param is removed from the customize.php
window's location once a changeset has been published (committed) with starter content.
...
Props westonruter, dlh for testing.
See #30937 .
Fixes #39081 .
Built from https://develop.svn.wordpress.org/trunk@39504
git-svn-id: http://core.svn.wordpress.org/trunk@39444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-05 16:56:42 +00:00
Weston Ruter
97f4180916
Customize: Prevent posts/pages imported via starter content from being dropped when adding post/page stubs via nav menus and the dropdown-pages control.
...
Props westonruter, dlh for testing.
See #38114 , #34923 .
Fixes #39071 .
Built from https://develop.svn.wordpress.org/trunk@39502
git-svn-id: http://core.svn.wordpress.org/trunk@39442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-05 16:47:41 +00:00
Adam Silverstein
113833953d
Docs: Add inline documentation for image-edit.js
.
...
Adds JSDoc DocBlocks to the imageEdit methods.
Props: andizer, rensw90.
Fixes #38748 .
Built from https://develop.svn.wordpress.org/trunk@39493
git-svn-id: http://core.svn.wordpress.org/trunk@39433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-04 21:35:40 +00:00
Gary Pendergast
623ba7e8c9
Load: Re-add locale.php
.
...
`locale.php` is occasionally included directly by custom external code, so should continue to be available. This behaviour is deprecated.
Partial revert of [38364].
See #37827 , #39027 .
Built from https://develop.svn.wordpress.org/trunk@39455
git-svn-id: http://core.svn.wordpress.org/trunk@39395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-03 04:07:40 +00:00
Gary Pendergast
3487c1bda8
Load: Re-add session.php
.
...
`session.php` is occasionally included directly by custom external code, so should continue to be available. This behaviour is deprecated.
Partial revert of [38373].
See #36335 , #39027 .
Built from https://develop.svn.wordpress.org/trunk@39453
git-svn-id: http://core.svn.wordpress.org/trunk@39393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-03 03:51:41 +00:00
Gary Pendergast
a7ca4b8dde
Load: Re-add class-wp-upgrader-skins.php
.
...
`class-wp-upgrader-skins.php` is occasionally included directly by custom external code, so should continue to be available. This is deprecated in favour of including `class-wp-upgrader.php`, instead.
Revert of [38379].
See #36335 , #39027 .
Built from https://develop.svn.wordpress.org/trunk@39450
git-svn-id: http://core.svn.wordpress.org/trunk@39390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-03 03:40:41 +00:00
Gary Pendergast
6f1d48cdf3
Load: Re-add class-feed.php
.
...
`class-feed.php` is occasionally included directly by custom external code, so should continue to be available. This is deprecated in favour of calling `fetch_feed()`, however..
Partial revert of [38374].
See #36335 , #39027 .
Built from https://develop.svn.wordpress.org/trunk@39449
git-svn-id: http://core.svn.wordpress.org/trunk@39389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-03 03:30:42 +00:00
Helen Hou-Sandí
a4042140f0
About page: Remove link tags from inside translatable strings.
...
props ramiy.
see #38616 .
Built from https://develop.svn.wordpress.org/trunk@39443
git-svn-id: http://core.svn.wordpress.org/trunk@39383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 22:37:44 +00:00
Helen Hou-Sandí
156b8ca421
About page: Remove emoji from translatable string.
...
props ocean90.
see #38616 .
Built from https://develop.svn.wordpress.org/trunk@39442
git-svn-id: http://core.svn.wordpress.org/trunk@39382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 22:30:42 +00:00
Dominik Schilling
c354cfd79b
About page: Don't wrap URLs with <code>
tags.
...
See #38616 .
Built from https://develop.svn.wordpress.org/trunk@39433
git-svn-id: http://core.svn.wordpress.org/trunk@39373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 12:31:41 +00:00