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
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
Andrew Ozz
85ee190163
Formatting: fix wpautop()
to stop adding paragraph tags around <figcaption>
.
...
Fixes #39307 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39912
git-svn-id: http://core.svn.wordpress.org/trunk@39849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 01:06:40 +00:00
Andrew Ozz
ee3052fdbe
Docs: some improvements/fixes for editor.js.
...
See #38933 .
Built from https://develop.svn.wordpress.org/trunk@39911
git-svn-id: http://core.svn.wordpress.org/trunk@39848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-16 00:49:41 +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
9ba7ab1cfc
Users: Display the name of user being edited on Edit User screen.
...
Props seanchayes.
Fixes #28182 .
Built from https://develop.svn.wordpress.org/trunk@39907
git-svn-id: http://core.svn.wordpress.org/trunk@39844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 07:14:39 +00:00
Sergey Biryukov
6e3073c1eb
Posts, Post Types: Increase the height of post slug input to prevent certain characters from being cut in Firefox on Windows.
...
Props Ankit K Gupta, Presskopp.
Fixes #28084 .
Built from https://develop.svn.wordpress.org/trunk@39905
git-svn-id: http://core.svn.wordpress.org/trunk@39842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 04:03:43 +00:00
Sergey Biryukov
2a7400c956
Administration: Improve tab character width in Plugins and Themes editor.
...
Props afercia.
Fixes #38684 .
Built from https://develop.svn.wordpress.org/trunk@39897
git-svn-id: http://core.svn.wordpress.org/trunk@39834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 04:41:41 +00:00
Sergey Biryukov
8603da629f
Taxonomy: Add an explanation for "Parent" dropdown for hierarchical custom taxonomies.
...
Props F J Kaiser, raggedrobins, DrewAPicture, diddledan, SergeyBiryukov.
Fixes #23447 .
Built from https://develop.svn.wordpress.org/trunk@39895
git-svn-id: http://core.svn.wordpress.org/trunk@39832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-13 04:19:39 +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
Sergey Biryukov
a4f106ff9d
I18N: Move "Site Language" setting above "Timezone".
...
This brings all locale-specific site settings closer together and prevents the language setting from being pushed down by unrelated settings added by plugins.
Props johnjamesjacoby.
Fixes #38562 .
Built from https://develop.svn.wordpress.org/trunk@39885
git-svn-id: http://core.svn.wordpress.org/trunk@39822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-12 04:28:40 +00:00
Dominik Schilling
c9ea1de144
Updates: Translate plugin data on the Updates screen.
...
Built from https://develop.svn.wordpress.org/trunk@39808
git-svn-id: http://core.svn.wordpress.org/trunk@39746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 10:37:48 +00:00
Aaron Campbell
03e5c0314a
Add nonce for widget accessibility mode.
...
Props vortfu.
See #23328 .
Built from https://develop.svn.wordpress.org/trunk@39760
git-svn-id: http://core.svn.wordpress.org/trunk@39698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-11 01:32:41 +00:00
Sergey Biryukov
c07571de67
Docs: Change @param
type for $user_object
in WP_Users_List_Table::single_row()
from object
to WP_User
to be more accurate.
...
Props sebastian.pisula.
Fixes #39536 .
Built from https://develop.svn.wordpress.org/trunk@39757
git-svn-id: http://core.svn.wordpress.org/trunk@39695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-10 12:45:44 +00:00
Sergey Biryukov
9234febe06
Posts, Post Types: Use an existing string for "Invalid post type" error message.
...
Props ramiy.
Fixes #39171 .
Built from https://develop.svn.wordpress.org/trunk@39756
git-svn-id: http://core.svn.wordpress.org/trunk@39694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-10 02:40:42 +00:00
Sergey Biryukov
fd0564d2bc
Docs: Remove incorrect @param
tags for admin_print_footer_scripts-{$hook_suffix}
and admin_footer-{$hook_suffix}
dynamic actiona.
...
Remove `@global` tags as well as they are not suited to describe a function parameter and are documented in the description of the actions.
Props keesiemeijer.
Fixes #39527 .
Built from https://develop.svn.wordpress.org/trunk@39755
git-svn-id: http://core.svn.wordpress.org/trunk@39693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-09 14:38:41 +00:00
Sergey Biryukov
fdc2b34124
Docs: Move install_global_terms()
DocBlock after the function_exists()
call.
...
Props keesiemeijer.
Fixes #39526 .
Built from https://develop.svn.wordpress.org/trunk@39754
git-svn-id: http://core.svn.wordpress.org/trunk@39692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-09 14:31:44 +00:00
Sergey Biryukov
6032bd6e32
Docs: Use 3-digit, x.x.x style semantic versioning for @since
entries in wp-admin/js/image-edit.js
.
...
See #38748 .
Built from https://develop.svn.wordpress.org/trunk@39740
git-svn-id: http://core.svn.wordpress.org/trunk@39680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:13:20 +00:00
Sergey Biryukov
e8c65e0df1
Docs: Use 3-digit, x.x.x style semantic versioning for @since
entries in wp-admin/js/word-count.js
.
...
See #37718 .
Built from https://develop.svn.wordpress.org/trunk@39739
git-svn-id: http://core.svn.wordpress.org/trunk@39679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:12:39 +00:00
Sergey Biryukov
e654c81f10
Docs: Add documentation for wp-admin/js/editor.js
.
...
Props terwdan, ireneyoast.
Fixes #38933 .
Built from https://develop.svn.wordpress.org/trunk@39738
git-svn-id: http://core.svn.wordpress.org/trunk@39678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 22:11:57 +00:00
Sergey Biryukov
93d4caaccd
Docs: Add missing @param
tag for show_post_locked_dialog
filter.
...
Props keesiemeijer.
Fixes #39479 .
Built from https://develop.svn.wordpress.org/trunk@39710
git-svn-id: http://core.svn.wordpress.org/trunk@39650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:59:04 +00:00
Sergey Biryukov
6e5d66c10e
Docs: Move install_network()
DocBlock after the function_exists()
call.
...
Props keesiemeijer.
Fixes #39478 .
Built from https://develop.svn.wordpress.org/trunk@39709
git-svn-id: http://core.svn.wordpress.org/trunk@39649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:58:23 +00:00
Sergey Biryukov
ead8c38f38
Docs: Add variable to @param
entry for whitelist_options
filter.
...
Props keesiemeijer.
Fixes #39477 .
Built from https://develop.svn.wordpress.org/trunk@39708
git-svn-id: http://core.svn.wordpress.org/trunk@39648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-06 21:57:42 +00:00
Dion Hulse
8912d6b134
Updates: Properly define $filesystemForm
to handle error in modals.
...
Ammends [39657].
See #39057 .
Built from https://develop.svn.wordpress.org/trunk@39689
git-svn-id: http://core.svn.wordpress.org/trunk@39629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 07:24:43 +00:00
Dion Hulse
b5dbe61dab
Upgrade: Fix the installation of TwentySeventeen upon upgrade from an early version.
...
This reverts part of [31124] which incorrectly caused `$old_wp_version` to equal the version of WordPress being upgraded to due to global variable access changes.
See #38551 , #30799 .
Fixes #39138 for trunk.
Built from https://develop.svn.wordpress.org/trunk@39687
git-svn-id: http://core.svn.wordpress.org/trunk@39627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 06:13:41 +00:00
Weston Ruter
5468850b10
Customize: Update customize.php
URL with changeset_uuid
param the instant a change is made instead of deferring until the changeset update request responds.
...
Props asalce.
Fixes #39227 .
Built from https://develop.svn.wordpress.org/trunk@39686
git-svn-id: http://core.svn.wordpress.org/trunk@39626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-05 05:18:43 +00:00
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
Dominik Schilling
afc9ef5123
About page: Restore the double %
in a printf()
call which has been removed in [39420].
...
We need this to escape the percent symbol for "100%".
See #38616 .
Built from https://develop.svn.wordpress.org/trunk@39432
git-svn-id: http://core.svn.wordpress.org/trunk@39372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 12:03:45 +00:00
Helen Hou-Sandí
cfd1161a97
About page: Add strings for 4.7 and make available for translation.
...
It doesn't look very pretty; design changes still to come.
props helen, michaelarestad, samuelsidler, jbpaul17, jorbin, nacin, melchoyce.
see #38616 .
Built from https://develop.svn.wordpress.org/trunk@39420
git-svn-id: http://core.svn.wordpress.org/trunk@39360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 06:31:43 +00:00
Dominik Schilling
3dc47839db
Docs: Document the usage of the global $wpdb
in _filter_query_attachment_filenames()
.
...
Props mt8.biz.
Fixes #38973 .
Built from https://develop.svn.wordpress.org/trunk@39390
git-svn-id: http://core.svn.wordpress.org/trunk@39330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-30 23:20:42 +00:00
Weston Ruter
b2c65c9a95
Customize: Fix regression in ability to hide fields for advanced menu properties in nav menu item controls.
...
Props westonruter, celloexpressions.
See #34391 .
Fixes #38952 .
Built from https://develop.svn.wordpress.org/trunk@39378
git-svn-id: http://core.svn.wordpress.org/trunk@39318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-30 18:01:43 +00:00
Weston Ruter
b2c12e463a
Customize: Fix regression in ability to create submenus for nav menus via drag and drop.
...
See #34391 .
Fixes #38948 .
Props delawski, adamsilverstein.
Built from https://develop.svn.wordpress.org/trunk@39376
git-svn-id: http://core.svn.wordpress.org/trunk@39316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-30 17:43:43 +00:00
Weston Ruter
6b5d960453
Customize: Clean up docs and code style for customize changes in 4.7.
...
* Adds missing `resolve`/`fail` for promise returned by `loadThemePreview`.
* Adds missing jsdoc blocks and tags.
* Adds missing phpdoc and makes corrections.
See #37770 .
Fixes #38908 .
Built from https://develop.svn.wordpress.org/trunk@39345
git-svn-id: http://core.svn.wordpress.org/trunk@39285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-23 06:05:32 +00:00
Helen Hou-Sandí
2406fe498c
Plugin install: De-duplicate a conditional, introduced in [38172].
...
props ChrisWiegman.
fixes #38190 .
Built from https://develop.svn.wordpress.org/trunk@39336
git-svn-id: http://core.svn.wordpress.org/trunk@39276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-21 21:33:30 +00:00
Dominik Schilling
2328e7b17a
I18N: In wp_dropdown_languages()
rename the new show_site_locale_default
argument to show_option_site_default
.
...
This makes it consistent with arguments of other `wp_dropdown_*()` functions.
Props SergeyBiryukov.
See #38632 .
Fixes #38871 .
Built from https://develop.svn.wordpress.org/trunk@39331
git-svn-id: http://core.svn.wordpress.org/trunk@39271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-21 16:14:30 +00:00
John Blackbourn
c2d709e9d6
I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.
...
See #38882
Built from https://develop.svn.wordpress.org/trunk@39326
git-svn-id: http://core.svn.wordpress.org/trunk@39266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-21 02:46:30 +00:00
Sergey Biryukov
1b2ed70f39
I18N: Move the support forums URL in update-related HTTP API error messages to a separate translatable string that is already used elsewhere.
...
Props ramiy, SergeyBiryukov.
Fixes #38880 .
Built from https://develop.svn.wordpress.org/trunk@39325
git-svn-id: http://core.svn.wordpress.org/trunk@39265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-21 01:52:32 +00:00
John Blackbourn
40af377f57
Remove an erroneous @TODO
introduced in [39323].
...
See #38882
Built from https://develop.svn.wordpress.org/trunk@39324
git-svn-id: http://core.svn.wordpress.org/trunk@39264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-21 01:26:30 +00:00
John Blackbourn
4cf5550d8d
I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment.
...
Adds context to one string used in two different contexts for the new user and new site signup email notification.
More to come.
See #38882
Built from https://develop.svn.wordpress.org/trunk@39323
git-svn-id: http://core.svn.wordpress.org/trunk@39263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-21 01:22:32 +00:00
Sergey Biryukov
285a774cad
I18N: Remove unnecessary __()
calls in _rotate_image_resource()
and _flip_image_resource()
.
...
Use `_deprecated_function()`'s native strings.
Props ramiy.
Fixes #38862 .
Built from https://develop.svn.wordpress.org/trunk@39314
git-svn-id: http://core.svn.wordpress.org/trunk@39254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-19 02:30:31 +00:00
Sergey Biryukov
dca7d8d0ea
Text Changes: Merge strings referring to list_users
capability.
...
See #38857 .
Built from https://develop.svn.wordpress.org/trunk@39312
git-svn-id: http://core.svn.wordpress.org/trunk@39252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-19 02:16:30 +00:00
Sergey Biryukov
b1ed607578
Text Changes: Merge and clarify some permission error strings in the admin.
...
See #38857 .
Built from https://develop.svn.wordpress.org/trunk@39308
git-svn-id: http://core.svn.wordpress.org/trunk@39248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-19 01:38:31 +00:00
Sergey Biryukov
529e242a39
I18N: Merge two 'ERROR:' strings.
...
Props ramiy.
Fixes #38860 .
Built from https://develop.svn.wordpress.org/trunk@39307
git-svn-id: http://core.svn.wordpress.org/trunk@39247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-19 01:09:30 +00:00
Helen Hou-Sandí
234ae480ee
Autoprefixer for [39249].
...
Fixes one errant value and re-aligns some existing prefixed property values so they don't get doubled when precommit/postcss is run again in the future.
props davidakennedy.
see #29158 .
Built from https://develop.svn.wordpress.org/trunk@39301
git-svn-id: http://core.svn.wordpress.org/trunk@39241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 21:06:30 +00:00
Sergey Biryukov
2fadd7a895
Docs: Use 3-digit, x.x.x style semantic versioning for @since 4.7.0
entries.
...
See #37770 .
Built from https://develop.svn.wordpress.org/trunk@39281
git-svn-id: http://core.svn.wordpress.org/trunk@39221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 18:28:30 +00:00
Sergey Biryukov
acc30b09d7
Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy.
...
Props ramiy, SergeyBiryukov.
Fixes #38808 .
Built from https://develop.svn.wordpress.org/trunk@39278
git-svn-id: http://core.svn.wordpress.org/trunk@39218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-17 15:53:33 +00:00
Weston Ruter
c2bc6df69a
Customize: Ensure Close button actually closes customizer (instead of going back) after switching to a different theme inside a customize-loader
iframe.
...
Fixes #38833 .
Built from https://develop.svn.wordpress.org/trunk@39271
git-svn-id: http://core.svn.wordpress.org/trunk@39211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 22:17:29 +00:00
Dominik Schilling
e4a83d2e6f
Users: In edit_user()
fall back to site's locale instead of en_US
for invalid user locales.
...
See #38632 , #29783 .
Fixes #38798 .
Built from https://develop.svn.wordpress.org/trunk@39269
git-svn-id: http://core.svn.wordpress.org/trunk@39209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-16 20:12:31 +00:00
Sergey Biryukov
a7af7c89a4
Text Changes: Unify permission error messages in wp-admin/users.php
.
...
Props ramiy.
Fixes #38804 .
Built from https://develop.svn.wordpress.org/trunk@39258
git-svn-id: http://core.svn.wordpress.org/trunk@39198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 22:25:30 +00:00
Helen Hou-Sandí
19bb9c2fe0
Customize: More visible focus and hover states for close and back buttons.
...
props celloexpressions, folletto.
fixes #29158 .
Built from https://develop.svn.wordpress.org/trunk@39249
git-svn-id: http://core.svn.wordpress.org/trunk@39189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 18:11:31 +00:00
Andrea Fercia
dff34d5988
Accessibility: Improve the Post Attributes meta box fields labels.
...
With [38951] the support for custom page templates has been extended to all post
types. By making the visible meta box titles real labels, accessibility improves
for all users and form fields have meaningful labels.
Fixes #38790 .
Built from https://develop.svn.wordpress.org/trunk@39247
git-svn-id: http://core.svn.wordpress.org/trunk@39187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 16:01:30 +00:00
Joe McGill
36ac7287b0
Media: Make PDF preview sizes filterable.
...
This adds a new filter, `fallback_intermediate_image_sizes`, which
can be used to modify the array of image sizes created for previewing
PDFs in the media library and checks for the existence of sizes before
processing any image representations of a PDF.
Fixes #38594 .
Built from https://develop.svn.wordpress.org/trunk@39246
git-svn-id: http://core.svn.wordpress.org/trunk@39186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 13:26:30 +00:00
Weston Ruter
de0835dead
Customize: Only show video header controls if previewing front page; show explanatory notice when controls are hidden.
...
Also include todo for the `header_video` control's `button_labels`. See #38796 .
Props westonruter, joemcgill, celloexpressions.
Fixes #38778 .
Built from https://develop.svn.wordpress.org/trunk@39237
git-svn-id: http://core.svn.wordpress.org/trunk@39177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-15 03:47:30 +00:00
Weston Ruter
9daebf050a
Customize: Maximize height of Custom CSS textarea
without causing doubled scrollbars.
...
Textarea will fill vertical height of Custom CSS section for browsers that support `calc()` and when plugins don't add other controls to the section. Also run CSS autoprefixer.
Props michaelarestad, westonruter.
See #35395 .
Fixes #38755 .
Built from https://develop.svn.wordpress.org/trunk@39229
git-svn-id: http://core.svn.wordpress.org/trunk@39169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-14 19:12:30 +00:00
Weston Ruter
c3f31ce550
Customize: Remove root panel description text which notes that edit shortcuts can be toggled by clicking anywhere in the preview.
...
Amends [39131], in which this method of toggling edit shortcuts was removed.
Props presskopp.
See #27403 .
Built from https://develop.svn.wordpress.org/trunk@39218
git-svn-id: http://core.svn.wordpress.org/trunk@39158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-14 04:33:32 +00:00
Weston Ruter
fd166077ad
Customize: Prevent the "Hide Controls" button label from overrunning the device preview buttons.
...
Adds translation context for "Hide Controls" strings so translators can supply shorter strings where space is constrained. Adds styles to fade-out long the "Hide Controls" label where it would run into the device preview buttons.
Props westonruter, ocean90.
Fixes #38762 .
Built from https://develop.svn.wordpress.org/trunk@39214
git-svn-id: http://core.svn.wordpress.org/trunk@39154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-13 19:00:35 +00:00
Helen Hou-Sandí
81f9cc26a1
Media: Clearly indicate that PDF thumbnails are just document previews.
...
This helps affirm that your upload is fine, and has not been reduced down to the first page or changed into an image. This applies to the attachment details modal in the media library, where media is also now centered in the preview area.
props folletto, helen.
fixes #38717 .
Built from https://develop.svn.wordpress.org/trunk@39213
git-svn-id: http://core.svn.wordpress.org/trunk@39153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-13 16:39:31 +00:00
Dion Hulse
dd0411161d
Updates: Allow background updates to update multiple plugins/themes in the same request.
...
Due to the `clear_update_cache` parameter not being respected, update caches were being cleared incorrectly which prevented multiple plugins to be updated at the same time in background updates - failing with a `fs_unavailable` error message.
Fixes #38024
Built from https://develop.svn.wordpress.org/trunk@39211
git-svn-id: http://core.svn.wordpress.org/trunk@39151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-13 09:53:32 +00:00
Dion Hulse
5f7bbe66d7
Posts, Post Types: Fix Quick Edit to correctly set the page template for non-hierarchical post types.
...
Props dd32, swissspidy.
Fixes #38655 .
Built from https://develop.svn.wordpress.org/trunk@39210
git-svn-id: http://core.svn.wordpress.org/trunk@39150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-13 07:42:31 +00:00
Weston Ruter
2b81ceddf9
Customize: Prevent previewer from appearing to freeze when refreshing too fast.
...
Fixes race condition issue where a previous iframe fails to get destroyed, leaving a iframe pending loading persistently shown.
Props nikeo, westonruter.
Fixes #38728 .
Built from https://develop.svn.wordpress.org/trunk@39199
git-svn-id: http://core.svn.wordpress.org/trunk@39139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-10 22:43:32 +00:00
Helen Hou-Sandí
f94285d68c
Customize: Make "Add New Page" buttons less intrusive.
...
They now better match the existing add functionality from the category metabox and are better separated from the surrounding inputs. All hail `.button-link`.
fixes #38164 . see #35126 .
Built from https://develop.svn.wordpress.org/trunk@39194
git-svn-id: http://core.svn.wordpress.org/trunk@39134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-10 02:56:30 +00:00
Pascal Birchler
548ac82b06
I18N: Add ability to change user's locale back to site's locale.
...
Previously there was no way to remove the user locale setting again, even though that might be desirable.
This adds a new 'Site Default' option to the user-specific language setting by introducing a new `show_site_locale_default` argument to `wp_dropdown_languages()`.
Props ocean90.
See #29783 .
Fixes #38632 .
Built from https://develop.svn.wordpress.org/trunk@39169
git-svn-id: http://core.svn.wordpress.org/trunk@39109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-08 23:01:31 +00:00
Pascal Birchler
2f7f8d526b
Posts, Post Types: Fix post type templates with child themes.
...
After [38951] added support for post type templates beyond pages, this fixes an issue where an empty meta box would be shown when using child themes.
Fixes #38696 .
Built from https://develop.svn.wordpress.org/trunk@39168
git-svn-id: http://core.svn.wordpress.org/trunk@39108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-08 22:41:30 +00:00
Drew Jaynes
7eeab12b1a
Docs: Notate the incoming $theme
object members for WP_Theme_Install_List_Table::single_row()
as a proper hash notation.
...
h/t coffee2code.
See #37770 .
Built from https://develop.svn.wordpress.org/trunk@39166
git-svn-id: http://core.svn.wordpress.org/trunk@39106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-08 20:16:31 +00:00
Dominik Schilling
45d5d6ddb5
Customize: Autoprefixer for [39149].
...
See #38667 .
Built from https://develop.svn.wordpress.org/trunk@39163
git-svn-id: http://core.svn.wordpress.org/trunk@39103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-08 15:25:32 +00:00
Weston Ruter
25a052bac7
Customize: Fix loading of theme screenshots in themes section and remove erroneous borders on hover.
...
Fixes regressions introduced in [38648].
Props delawski, mckernanin.
See #34391 .
Fixes #38222 .
Built from https://develop.svn.wordpress.org/trunk@39153
git-svn-id: http://core.svn.wordpress.org/trunk@39093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-07 21:47:30 +00:00
Weston Ruter
5ea1e6fd80
Customize: Allow tab characters in custom CSS input.
...
Pressing `Esc` followed by `Tab` allows for tabbing to the next element.
Props afercia, coffee2code, westonruter.
See #35395 .
Fixes #38667 .
Built from https://develop.svn.wordpress.org/trunk@39149
git-svn-id: http://core.svn.wordpress.org/trunk@39089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-06 19:09:33 +00:00
Weston Ruter
9f288ff12a
Customize: For Header Image, ensure "Previously uploaded" and "Suggested" headings are hidden when lists are empty.
...
Fixes regression introduced with the addition of control notifications in [37476]. The container element for notifications is injected after the `.customize-control-title` element if the `.customize-control-notifications-container` element does not already exist in the control's template. Also adds missing margin between current image and uploaded images.
Props bradyvercher.
See #34893 .
Fixes #38561 .
Built from https://develop.svn.wordpress.org/trunk@39145
git-svn-id: http://core.svn.wordpress.org/trunk@39085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 23:15:33 +00:00
Aaron Jorbin
53c8c68365
Administration: Ensure collapse menu is usable with a keyboard
...
Currently, the "Collapse menu" item is not focusable and keyboard users can't collapse/expand the admin menu. This aims to fix it so that screen readers no longer announce it as a clickable but it remains unfocusable and thus unusable. So it's now a button.
Quoting joedolson at WordCamp Chicago 2014:
"If it's supposed to act like a button, it should be a button."
Also includes a grunt:precommit run that picked up some postcss changes to src/wp-includes/css/customize-preview.css
Fixes #29958 .
Props ajercia, ipm-frommen for an iterative patch, valendesigns for an iterative patch, GaryJ for feedback, joedolson for feedback, helen for feedback
Built from https://develop.svn.wordpress.org/trunk@39141
git-svn-id: http://core.svn.wordpress.org/trunk@39081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:18:57 +00:00
Helen Hou-Sandí
1281a28382
Customize: Revert theme install feature.
...
This is a great goal for core, and is close, but it is not in shape to be shipped for 4.7 and there is not enough time left in the development cycle to alter and polish sufficiently. There are bugs, but more than that, there are more fundamental questions around the use of existing UI, general UX, and how findable themes are (not) on the .org side.
see #37661 .
Built from https://develop.svn.wordpress.org/trunk@39140
git-svn-id: http://core.svn.wordpress.org/trunk@39080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:18:26 +00:00
Weston Ruter
8ec767c21f
Customize: Ensure page/post stubs are included in listings and searches for available nav menu items.
...
Include the customized state in the Ajax requests to load items and search items.
See #38573 .
Fixes #38122 .
Built from https://develop.svn.wordpress.org/trunk@39138
git-svn-id: http://core.svn.wordpress.org/trunk@39078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:17:26 +00:00
Weston Ruter
1a3e930383
Customize: Combine Ajax requests for initial load of available nav menu items into a single request.
...
When there are many post types registered, prevent Ajax requests from piling up and slamming WordPress with concurrent requests.
Props curdin, westonruter.
Fixes #36697 .
Built from https://develop.svn.wordpress.org/trunk@39137
git-svn-id: http://core.svn.wordpress.org/trunk@39077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:16:57 +00:00
Weston Ruter
e4b4f3efe3
Customize: For toggling visibility of the controls pane, rename "Collapse (Sidebar)" to "Hide Controls" and "Expand Sidebar" to "Expand Controls".
...
Fixes #38647 .
Built from https://develop.svn.wordpress.org/trunk@39132
git-svn-id: http://core.svn.wordpress.org/trunk@39072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:14:27 +00:00
Weston Ruter
726cd04bac
Customize: Let edit shortcuts be persistently visible when controls pane is expanded, hidden when collapsed, and always visible in mobile preview. Remove initial flash of edit shortcuts.
...
Props westonruter, sirbrillig.
Fixes #27403 .
Built from https://develop.svn.wordpress.org/trunk@39131
git-svn-id: http://core.svn.wordpress.org/trunk@39071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:13:57 +00:00
Joe McGill
8fa49e77bd
Themes: Improve support for placeholders in default headers.
...
When themes register default headers, they can use sprintf style placeholder
strings in place of the template directory URI, which WordPress transforms
in several places by running the value of
`get_theme_support( 'custom-header', 'default-image' )` through `sprintf()`.
This fixes a few places where WordPress skipped the `sprintf()` step and
referenced the `get_theme_support()` value directly.
Props bradyvercher for initial patch.
See #38557 .
Built from https://develop.svn.wordpress.org/trunk@39123
git-svn-id: http://core.svn.wordpress.org/trunk@39063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:10:01 +00:00
Dominik Schilling
89cab4e197
I18N: Show "Settings saved." in the correct language after switching the site language.
...
This simplifies the logic by comparing `get_user_locale()` before and after an settings update.
Props swissspidy, ocean90.
See #29783 , #29281 .
Fixes #38482 .
Built from https://develop.svn.wordpress.org/trunk@39122
git-svn-id: http://core.svn.wordpress.org/trunk@39062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:09:31 +00:00
Weston Ruter
ea5f4179a7
Customize: Prevent collapsing expanded panel/section/control when Esc
is pressed on another closable UI element.
...
Prevents collapsing constructs when hitting `Esc` on a TinyMCE toolbar, lightbox, or expanded color picker.
See #22237 .
Fixes #38091 .
Built from https://develop.svn.wordpress.org/trunk@39120
git-svn-id: http://core.svn.wordpress.org/trunk@39060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-04 17:08:33 +00:00
Aaron Jorbin
32be6f7bb7
Bump grunt-contrib-uglify from 1.0.1 to 2.0.0
...
Sets `screwIE8` to false as it is now enabled by default
Files Changed:
build/wp-admin/js/customize-nav-menus.min.js
build/wp-admin/js/customize-widgets.min.js
build/wp-includes/js/customize-loader.min.js
Changelog:
2016-07-19 v2.0.0 Update uglify-js to v2.7.0. screwIE8 is enabled by default.
2016-07-19 v1.0.2 Update grunt to ^1.0.0. Fix beautify when passed as an object. Fix docs about report values.
See #38199 .
Built from https://develop.svn.wordpress.org/trunk@39117
git-svn-id: http://core.svn.wordpress.org/trunk@39059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-03 05:40:34 +00:00
Weston Ruter
985a1f6a97
Customize: Prevent syncing unmodified settings from controls into preview to guard against triggering an infinite reload due to selective refresh fallback behavior.
...
If a value is sanitized in PHP and differs from the JS value in the pane, a `change` event for the setting is triggered upon refresh. This should be avoided since the value just came from the server as being sanitized. This also fixes periodic issue where selective refresh happens immediately after a full refresh.
Fixes #37032 .
Built from https://develop.svn.wordpress.org/trunk@39112
git-svn-id: http://core.svn.wordpress.org/trunk@39054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-03 05:07:32 +00:00
Pascal Birchler
ceeb8ddb46
Plugins: Improve Ajax search of installed plugins.
...
Removes the highlight from the current filter when performing an Ajax search and adds it back when clearing the search input.
Fixes #37657 .
Built from https://develop.svn.wordpress.org/trunk@39099
git-svn-id: http://core.svn.wordpress.org/trunk@39041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-02 22:47:30 +00:00
Helen Hou-Sandí
6485e5e3cf
Menus: Use a label of "Display location" for individual nav menu settings.
...
While "Menu/Theme locations" was descriptive of what the choices listed were, in the context of editing an individual nav menu it is more descriptive to use a setting label that tells you what it is you are affecting for that nav menu, which is where it will be displayed. Technically multiple locations can be chosen, but in practice that appears to be rare enough that we can avoid an awkward "location(s)" type string.
props Fencer04 for the initial patch.
fixes #38525 .
Built from https://develop.svn.wordpress.org/trunk@39098
git-svn-id: http://core.svn.wordpress.org/trunk@39040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-02 22:11:31 +00:00
Helen Hou-Sandí
2d07c3196e
Only set fresh_site
during an actual fresh install.
...
props westonruter.
fixes #38533 .
Built from https://develop.svn.wordpress.org/trunk@39076
git-svn-id: http://core.svn.wordpress.org/trunk@39018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-01 20:16:31 +00:00
Pascal Birchler
8df80ae3ee
I18N: Show available timezones in the user's locale on the settings screen.
...
Adds a `$locale` parameter to `wp_timezone_choice()` to only reload translations when necessary.
Props yale01.
See #38485 .
Built from https://develop.svn.wordpress.org/trunk@39068
git-svn-id: http://core.svn.wordpress.org/trunk@39010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-01 09:16:31 +00:00
Dion Hulse
70b1d2071b
Upgrade: Install new themes upon upgrade again.
...
This partially reverts [35738], which has shown to provide a bad user experience for users seeking to experiment with TwentySeventeen.
This will result in TwentySixteen being installed in addition to TwentySeventeen.
See #38551 .
Built from https://develop.svn.wordpress.org/trunk@39064
git-svn-id: http://core.svn.wordpress.org/trunk@39006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-01 01:24:35 +00:00
John Blackbourn
0ff0dcc7de
Plugins: Correct the since
docs for the various plugin_action_links
filters.
...
Props tfrommen, SergeyBiryukov
Built from https://develop.svn.wordpress.org/trunk@39063
git-svn-id: http://core.svn.wordpress.org/trunk@39005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-31 19:38:47 +00:00
John Blackbourn
babd79fb36
Posts, Post Types: Prevent users from being able to delete a protected meta field from a post.
...
Previously a user could remove a protected meta field by using their browser developer tools to alter the form field properties in the Custom Fields meta box, given that they know the ID of the protected meta field. This change prevents this by preventing any change to a protected meta field, including changing its key.
Props ajoah, johnbillion, peterwilsoncc
Fixes #38293
Built from https://develop.svn.wordpress.org/trunk@39062
git-svn-id: http://core.svn.wordpress.org/trunk@39004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-31 19:30:32 +00:00
Andrea Fercia
4356a28b52
Administration: remove a leftover check from get_submit_button.
...
Props sstoqnov.
Fixes #34891 .
Built from https://develop.svn.wordpress.org/trunk@39059
git-svn-id: http://core.svn.wordpress.org/trunk@39001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-31 16:39:32 +00:00
Dominik Schilling
ba9b3cf6a6
I18N: Don't use get_user_option()
for retrieving user's language.
...
`get_user_option()` checks for both option types, site and network. Since `locale` is only a network option we can directly access the field via `WP_User`s magic getter.
Props johnjamesjacoby.
Fixes #38578 .
Built from https://develop.svn.wordpress.org/trunk@39040
git-svn-id: http://core.svn.wordpress.org/trunk@38982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-30 22:26:31 +00:00
Dominik Schilling
cf571b12c1
I18N: Use correct value for the for
attribute of the user language setting label.
...
Props johnjamesjacoby.
Fixes #38576 .
Built from https://develop.svn.wordpress.org/trunk@39039
git-svn-id: http://core.svn.wordpress.org/trunk@38981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-30 21:58:38 +00:00
Andrea Fercia
791c72dd4d
Accessibility: Remove target=_blank from the help tab links in network.php.
...
Stop taking control of users' browsers.
Props wolly.
Fixes #38572 . See #23432 .
Built from https://develop.svn.wordpress.org/trunk@39019
git-svn-id: http://core.svn.wordpress.org/trunk@38961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-30 15:19:37 +00:00
Weston Ruter
5015bd55a2
Customize: Reveal controls pane when clicking on edit shortcuts in mobile preview.
...
Re-use `paneVisible` state to also manage whether the mobile `preview-only` class is applied to the overlay.
Props seancjones.
See #36678 , #36678 , #27403 .
Fixes #38080 .
Built from https://develop.svn.wordpress.org/trunk@39010
git-svn-id: http://core.svn.wordpress.org/trunk@38952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-30 04:23:44 +00:00
Andrea Fercia
fd40a16ad1
Accessibility: Improve the form labels on the Add New User screen.
...
On the Multisite - single site "Add New User" screen, some form fields have more
than one label associated with them. Form controls should have at most one
associated label element. If more than one label element is associated to the
control, assistive technologies may not read the appropriate label.
Additionally, labels can be associated to their related form fields either
explicitly (using a `for` attribute referencing the field ID) or implicitly
(using the label to wrap the field). As a best practice, never do both and
prefer explicitly associated labels when possible.
Props Ankit K Gupta.
Fixes #38459 .
Built from https://develop.svn.wordpress.org/trunk@39006
git-svn-id: http://core.svn.wordpress.org/trunk@38948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-29 12:54:30 +00:00
Weston Ruter
d71afc0d9a
Customize: Mark newly-added page/post stubs as added (with checkmark) when they are inserted into the list of available items.
...
Props ryankienstra, celloexpressions.
See #34923 .
Fixes #38499 .
Built from https://develop.svn.wordpress.org/trunk@39002
git-svn-id: http://core.svn.wordpress.org/trunk@38944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-29 05:06:31 +00:00
Weston Ruter
75535c596b
Customize: Introduce starter content and site freshness state.
...
A theme can opt-in for tailored starter content to apply to the customizer when previewing the theme on a fresh install, when `fresh_site` is at its initial `1` value. Starter content is staged in the customizer and does not go live unless the changes are published. Initial starter content is added to Twenty Seventeen.
* The `fresh_site` flag is cleared when a published post or page is saved, when widgets are modified, or when the customizer state is saved.
* Starter content is registered via `starter-content` theme support, where the argument is an array containing `widgets`, `posts`, `nav_menus`, `options`, and `theme_mods`. Posts/pages in starter content are created with the `auto-draft` status, re-using the page/post stubs feature added to nav menus and the static front page controls.
* A `get_theme_starter_content` filter allows for plugins to extend a theme's starter content.
* Starter content in themes can/should re-use existing starter content items in core by using named placeholders.
* Import theme starter content into customized state when fresh site.
* Prevent original_title differences from causing refreshes if title is present.
* Ensure nav menu item url is set according to object when previewing.
* Make sure initial saved state is false if there are dirty settings without an existing changeset.
* Ensure dirty settings are cleaned upon changeset publishing.
Props helen, westonruter, ocean90.
Fixes #38114 , #38533 .
Built from https://develop.svn.wordpress.org/trunk@38991
git-svn-id: http://core.svn.wordpress.org/trunk@38934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-28 02:57:35 +00:00
Andrea Fercia
7a60d6571c
Accessibility: Remove inappropriate content from the Posts and Edit screens headings.
...
Props grahamarmfield, SergeyBiryukov, trishasalas, valendesigns, rianrietveld, afercia.
See #26601 .
Built from https://develop.svn.wordpress.org/trunk@38983
git-svn-id: http://core.svn.wordpress.org/trunk@38926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-27 20:39:39 +00:00
Andrea Fercia
432f5e76b2
Accessibility: Improve the Menus post type meta boxes pagination links.
...
- adds hidden text to the pagination links
- slightly increases the links clickable area
- fixes a JS error when clicking on the current page number
- avoids to generate nested `<div>` elements at each click
Props xavortm, cwpnolen, afercia.
Fixes #35577 .
Built from https://develop.svn.wordpress.org/trunk@38981
git-svn-id: http://core.svn.wordpress.org/trunk@38924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-27 15:23:31 +00:00
Weston Ruter
62445cd41b
Customize: Check for existence of controls and settings for background properties before attempting to access.
...
Amends [38948].
See #22058 .
Fixes #38523 .
Built from https://develop.svn.wordpress.org/trunk@38977
git-svn-id: http://core.svn.wordpress.org/trunk@38920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-27 05:02:35 +00:00
Weston Ruter
71afe657b6
Customize: Add edit shortcuts in customizer preview to visually expose editable elements and focus on the corresponding controls when clicked.
...
* Edit shortcuts show initially for a moment and then fade away so as to not get in the way of the preview.
* Visibility of edit shortcuts is toggled by clicking/touching anywhere inert in the document.
* Implements UI for mobile and touch devices which do not support shift-click.
* Adds `editShortcutVisibility` state.
* Adds new methods to `wp.customize.selectiveRefresh.Partial` for managing edit shortcuts.
Incorporates aspects of the Customize Direct Manipulation feature plugin.
Props sirbrillig, mattwiebe, celloexpressions, melchoyce, westonruter, afercia.
Fixes #27403 .
Built from https://develop.svn.wordpress.org/trunk@38967
git-svn-id: http://core.svn.wordpress.org/trunk@38910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 20:03:32 +00:00
Andrea Fercia
6fe17e2a3d
Administration: Better accessibility for the "Post locked" indicator.
...
- hides the locked icon from assistive technologies
- adds hidden text to indicate the post is locked
- moves the info about who's currently editing to the top of the title table cell
Props mariovalney.
Fixes #38185 .
Built from https://develop.svn.wordpress.org/trunk@38965
git-svn-id: http://core.svn.wordpress.org/trunk@38908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 17:59:29 +00:00
Dominik Schilling
7819e2b4ba
I18N: Introduce a locale-switching function.
...
With the introduction of user-specific languages in [38705] it's necessary to be able to switch translations on the fly. For example emails should be sent in the language of the recipient and not the one of the current user.
This introduces a new `WP_Locale_Switcher` class which is used for switching locales and translations. It holds the stack of locales whenever `switch_to_locale( $locale )` is called. With `restore_previous_locale()` you can restore the previous locale. `restore_current_locale()` empties the stack and sets the locale back to the initial value.
`switch_to_locale()` is added to most of core's email functions, either with the value of `get_locale()` (site language) or `get_user_locale()` (user language with fallback to site language).
Props yoavf, tfrommen, swissspidy, pbearne, ocean90.
See #29783 .
Fixes #26511 .
Built from https://develop.svn.wordpress.org/trunk@38961
git-svn-id: http://core.svn.wordpress.org/trunk@38904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 15:36:31 +00:00
John Blackbourn
bc5c87710e
Administration: Standardise the docblocks for the handle_bulk_actions-*
filters.
...
Props ericlewis, Veraxus
Fixes #16031
Built from https://develop.svn.wordpress.org/trunk@38958
git-svn-id: http://core.svn.wordpress.org/trunk@38901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 14:45:29 +00:00
John Blackbourn
d2173fd5b0
Administration: Switch to handle_network_bulk_actions-{$screen}
for the bulk listing screen actions in the network admin area.
...
Props ericlewis, Veraxus
See #16031
Built from https://develop.svn.wordpress.org/trunk@38957
git-svn-id: http://core.svn.wordpress.org/trunk@38900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 14:37:29 +00:00
Sergey Biryukov
4bd54798ec
I18N: Allow for WordPress Plugin Directory URL in plugin details modal to be localized.
...
Props Soean.
Fixes #38495 . See #37501 .
Built from https://develop.svn.wordpress.org/trunk@38953
git-svn-id: http://core.svn.wordpress.org/trunk@38896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 12:18:06 +00:00
Dominik Schilling
946da2d398
About Page: Use get_user_language()
for the video subtitles.
...
Rename `$locale` to `$lang_code` to avoid stomping of the global `$locale`.
See #38485 .
Built from https://develop.svn.wordpress.org/trunk@38952
git-svn-id: http://core.svn.wordpress.org/trunk@38895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 12:11:43 +00:00
Pascal Birchler
81a26f6900
Posts, Post Types: Add support for post type templates.
...
WordPress has supported custom page templates for over 12 years, allowing developers to create various layouts for specific pages.
While this feature is very helpful, it has always been limited to the 'page' post type and not was not available to other post types.
By opening up the page template functionality to all post types, we continue to improve the template hierarchy's flexibility.
In addition to the `Template Name` file header, the post types supported by a template can be specified using `Template Post Type: post, foo, bar`.
When at least one template exists for a post type, the 'Post Attributes' meta box will be displayed in the back end, without the need to add post type support for `'page-attributes'`. 'Post Attributes' can be customized per post type using the `'attributes'` label when registering a post type.
Props johnbillion, Mte90, dipesh.kakadiya, swissspidy.
Fixes #18375 .
Built from https://develop.svn.wordpress.org/trunk@38951
git-svn-id: http://core.svn.wordpress.org/trunk@38894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 08:07:30 +00:00
Mike Schroder
a8e304ec8e
Media: Add support for rendering PDF thumbnails.
...
When support for PDFs is available, on upload,
render 'Thumbnail', 'Medium', 'Large', and 'Full' sizes of
the first page, and save them in attachment meta.
Use these renders within Add Media, Media Gallery and List views,
Attachment Details, Post/Attachment Edit screens, and Attachment pages.
Support available by default via Imagick -> ImageMagick -> Ghostscript,
but can be provided by any `WP_Image_Editor` that supports PDFs.
Props adamsilverstein, azaozz, celloexpressions, desrosj, dglingren, ericlewis, ipstenu, joemcgill, joyously, markoheijnen, melchoyce, mikeschroder, tomauger.
Fixes #31050 .
Built from https://develop.svn.wordpress.org/trunk@38949
git-svn-id: http://core.svn.wordpress.org/trunk@38892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 07:28:32 +00:00
Weston Ruter
a86496aea4
Customize: Improve custom background properties UI.
...
Introduces new control for managing the background position. Adds control for setting the `background-size`.
Props cdog, celloexpressions, grapplerulrich, MikeHansenMe, FolioVision, afercia, helen, melchoyce, karmatosed, westonruter, Kelderic, sebastian.pisula.
Fixes #22058 .
Built from https://develop.svn.wordpress.org/trunk@38948
git-svn-id: http://core.svn.wordpress.org/trunk@38891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 06:52:29 +00:00
Weston Ruter
8d1cb3068a
Customize: Add hue-only mode to color picker.
...
The color control in the customizer can use the new mode by supplying the `mode` param with `hue` (as opposed to the new default `full` value). New control replaces the `range` control in Twenty Seventeen for `colorscheme_hue`. The `wpColorPicker` can opt for hue-only mode via supplying `hue` as the `type` option. Iris Color Picker is updated from v1.0.7 to v1.1.0-beta.
Props mattwiebe, celloexpressions.
Fixes #38263 .
Built from https://develop.svn.wordpress.org/trunk@38931
git-svn-id: http://core.svn.wordpress.org/trunk@38874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 22:33:30 +00:00
Weston Ruter
54465a68db
Customize: Fix logic inversion in determining whether a URL is previewable which prevented previewing anything but homepage.
...
Fixes regression introduced in [38890].
See #38409 .
Fixes #38492 .
Built from https://develop.svn.wordpress.org/trunk@38926
git-svn-id: http://core.svn.wordpress.org/trunk@38869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 20:53:29 +00:00
Dominik Schilling
1159185401
Upgrade: Realign $_new_bundled_files
after [38921].
...
Built from https://develop.svn.wordpress.org/trunk@38922
git-svn-id: http://core.svn.wordpress.org/trunk@38865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 20:04:31 +00:00
Dominik Schilling
6e08d8303d
Upgrade: Add Twenty Seventeen to $_new_bundled_files
.
...
This indicates that Twenty Seventeen should be installed with a WordPress upgrade.
See #38372 .
Built from https://develop.svn.wordpress.org/trunk@38921
git-svn-id: http://core.svn.wordpress.org/trunk@38864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 20:03:03 +00:00
Dominik Schilling
3db5fa6c90
Nav Menus: Update help text to include the two latest default themes, Twenty Sixteen and Twenty Seventeen.
...
See #38372 .
Built from https://develop.svn.wordpress.org/trunk@38920
git-svn-id: http://core.svn.wordpress.org/trunk@38863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 20:02:32 +00:00
Dominik Schilling
652742bf0a
Install: Update sidebars_widgets
option for Twenty Seventeen to match its three sidebars.
...
See #38372 .
Built from https://develop.svn.wordpress.org/trunk@38919
git-svn-id: http://core.svn.wordpress.org/trunk@38862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 20:01:13 +00:00
Andrea Fercia
48b12e9dd6
Menus: Improve the HTML semantics of the "Menu Settings" section.
...
- removes the previous markup based on a definition list
- groups checkboxes in `fieldset` elements with a `legend`
- simplifies the CSS lowering selectors specificity
Props xavortm.
Fixes #38023 .
Built from https://develop.svn.wordpress.org/trunk@38912
git-svn-id: http://core.svn.wordpress.org/trunk@38855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 17:29:30 +00:00
Weston Ruter
30a71555cb
Customize: Allow page stubs to be created via dropdown-pages
controls in the Static Front Page section.
...
This ability was previously added to nav menus via the available page items panel. The "Add New Page" button only appears when the `allow_addition` control param is supplied as `true`. Code is adapted from the Customize Posts feature plugin.
Props celloexpressions, westonruter.
See #38013 , #34923 .
Fixes #38164 .
Built from https://develop.svn.wordpress.org/trunk@38906
git-svn-id: http://core.svn.wordpress.org/trunk@38849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 06:31:31 +00:00
Weston Ruter
afe90360b5
Customize: Prevent absent site icon link
from outputting an empty string as href
in customizer; use /favicon.ico
as fallback.
...
An empty string causes some browsers to use the current URL as the `href`. When using `history.replaceState()` Chrome will re-fetch the favicon with each call, meaning that `customize.php` gets hit with wasted requests which tax the server.
Fixes #38377 .
Built from https://develop.svn.wordpress.org/trunk@38901
git-svn-id: http://core.svn.wordpress.org/trunk@38844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 04:47:29 +00:00
Weston Ruter
a1777db166
Customize: Skip attaching expansion event handlers to section containers with the cannot-expand
class.
...
Props kkoppenhaver, celloexpressions.
Fixes #37980 .
Built from https://develop.svn.wordpress.org/trunk@38900
git-svn-id: http://core.svn.wordpress.org/trunk@38843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 04:36:39 +00:00
Dion Hulse
0314e29667
Drop the requirement for the entry points to WordPress to be parsable by PHP4.
...
Previously we ensured that the entry points to WordPress were parsable by PHP4 in order to display a friendly not-supported-php error message.
However, for the last two years the main entry points have not actually parsed, and we've only added extra parse errors since it last worked in 3.9, so it's time we just remove this 'feature'.
The PHP version checks are still there for PHP 5.0/5.1, and so it's inplace when we eventually drop PHP 5.2 support.
See #29489 .
Built from https://develop.svn.wordpress.org/trunk@38899
git-svn-id: http://core.svn.wordpress.org/trunk@38842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 03:15:30 +00:00
Dion Hulse
2b788037c7
Upgrade: Don't fail a core update just because readme.html
or license.txt
couldn't be modified.
...
A number of locked down installs remove `readme.html` or make it inaccessible which would result in an update failure.
Props polevaultweb for the initial patch.
Fixes #31420 .
Built from https://develop.svn.wordpress.org/trunk@38898
git-svn-id: http://core.svn.wordpress.org/trunk@38841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 02:24:31 +00:00
Dion Hulse
e8211f783a
Docs: Correct a number of typos/spelling mistakes in inline comments.
...
Props ottok.
Fixes #38464 .
Built from https://develop.svn.wordpress.org/trunk@38893
git-svn-id: http://core.svn.wordpress.org/trunk@38836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 00:38:35 +00:00
Weston Ruter
885d1dd89d
Customize: Harden url matching to account for varying ports and ensuring matching base pathname for allowed urls
...
Fixes #38409 .
Built from https://develop.svn.wordpress.org/trunk@38890
git-svn-id: http://core.svn.wordpress.org/trunk@38833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-24 20:07:31 +00:00