Sergey Biryukov
0afafb7a1b
I18N: Unify error messages in XML-RPC methods wp_deleteCategory()
and wp_deleteComment()
.
...
Props ramiy.
Fixes #39019 .
Built from https://develop.svn.wordpress.org/trunk@41927
git-svn-id: http://core.svn.wordpress.org/trunk@41761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 21:12:51 +00:00
Sergey Biryukov
50db4bceb0
Administration: After [41120], check for a registered action before sending a Bad Request HTTP response status code.
...
Props Clorith.
Fixes #42240 .
Built from https://develop.svn.wordpress.org/trunk@41926
git-svn-id: http://core.svn.wordpress.org/trunk@41760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 21:01:49 +00:00
Sergey Biryukov
469e37446e
Menus: Remove unnecessary top margin for menu item type on Menus screen for correct alignment with the dropdown icon.
...
Props punit5658.
Fixes #41521 .
Built from https://develop.svn.wordpress.org/trunk@41925
git-svn-id: http://core.svn.wordpress.org/trunk@41759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 20:52:49 +00:00
Sergey Biryukov
d2499c4212
Network Admin: After [41923], move the second <p>
tag to a new line for better readability.
...
See #41652 .
Built from https://develop.svn.wordpress.org/trunk@41924
git-svn-id: http://core.svn.wordpress.org/trunk@41758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 20:51:48 +00:00
Sergey Biryukov
a749494900
I18N: Remove hardcoded constant from a translatable string in network_step1()
.
...
Props ramiy.
Fixes #41652 .
Built from https://develop.svn.wordpress.org/trunk@41923
git-svn-id: http://core.svn.wordpress.org/trunk@41757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 20:02:50 +00:00
Sergey Biryukov
73dc2a45e3
Docs: Document $ini_all
staticvar in wp_is_ini_value_changeable()
.
...
Props nileshdudakiya94.
Fixes #41399 .
Built from https://develop.svn.wordpress.org/trunk@41922
git-svn-id: http://core.svn.wordpress.org/trunk@41756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 19:54:48 +00:00
Sergey Biryukov
106beec6a7
I18N: Combine two "Warning" strings in network_step1()
and network_step2()
.
...
Props ramiy.
Fixes #38570 .
Built from https://develop.svn.wordpress.org/trunk@41921
git-svn-id: http://core.svn.wordpress.org/trunk@41755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 19:50:47 +00:00
Sergey Biryukov
eac62c8da0
Date/Time: Use delta comparison in get_gmt_from_date()
tests to avoid race conditions.
...
Props keesiemeijer.
Fixes #38815 .
Built from https://develop.svn.wordpress.org/trunk@41920
git-svn-id: http://core.svn.wordpress.org/trunk@41754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 19:42:48 +00:00
Weston Ruter
9cb9695104
Customize: Fix visibility of overlay notifications in Safari.
...
Props sayedwp, westonruter.
Amends [41390].
See #35210 , #42024 , #42052 .
Built from https://develop.svn.wordpress.org/trunk@41919
git-svn-id: http://core.svn.wordpress.org/trunk@41753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:14:37 +00:00
Felix Arntz
4cb1026757
Multisite: Document all return types in get_networks().
...
Adds more complete documentation to get_networks() and the corresponding methods in WP_Network_Query.
Fixes #42260 .
Built from https://develop.svn.wordpress.org/trunk@41918
git-svn-id: http://core.svn.wordpress.org/trunk@41752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:13:50 +00:00
Sergey Biryukov
0fc7597032
Docs: Document $default_scripts
parameter in _WP_Editors::enqueue_scripts()
.
...
Props danieltj, ajayghaghretiya1.
Fixes #41322 .
Built from https://develop.svn.wordpress.org/trunk@41917
git-svn-id: http://core.svn.wordpress.org/trunk@41751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:09:47 +00:00
Sergey Biryukov
a28bd1d36c
Plugins: Revert unintended change from [41915].
...
See #37430 .
Built from https://develop.svn.wordpress.org/trunk@41916
git-svn-id: http://core.svn.wordpress.org/trunk@41750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:01:49 +00:00
Sergey Biryukov
936bf3661f
Plugins: After [41608], make the markup in WP_Plugin_Install_List_Table::no_items()
a bit more readable.
...
See #37430 .
Built from https://develop.svn.wordpress.org/trunk@41915
git-svn-id: http://core.svn.wordpress.org/trunk@41749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:58:48 +00:00
Sergey Biryukov
4dd637acde
Docs: Add @since
entry for WP_Automatic_Updater::after_core_update()
, introduced in [25841].
...
See #41017 , #29086 .
Built from https://develop.svn.wordpress.org/trunk@41914
git-svn-id: http://core.svn.wordpress.org/trunk@41748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:48:49 +00:00
Weston Ruter
ae538512c3
Widgets: Fix previewing embeds in Text widget by allowing parse-embed
admin ajax requests with an empty post_ID
just as WP_oEmbed_Controller::get_proxy_item_permissions_check()
allows.
...
As of #34115 if there is no post context the oEmbed will be cached in an `oembed_cache` custom post type, so having a post as context is no longer a requirement for caching.
Props biskobe, westonruter.
See #34115 , #40450 .
Fixes #40854 .
Built from https://develop.svn.wordpress.org/trunk@41913
git-svn-id: http://core.svn.wordpress.org/trunk@41747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:40:49 +00:00
Jeremy Felt
548d8c2e0d
Multisite: Document all return types in get_sites()
.
...
Adds more complete documentation to `get_sites()` and the corresponding methods in `WP_Site_Query`.
Fixes #41789 .
Built from https://develop.svn.wordpress.org/trunk@41912
git-svn-id: http://core.svn.wordpress.org/trunk@41746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:39:46 +00:00
Sergey Biryukov
53dba84ec7
I18N: Remove <a>
tag from a translatable string in confirm_another_blog_signup()
.
...
Props ramiy.
Fixes #41694 .
Built from https://develop.svn.wordpress.org/trunk@41911
git-svn-id: http://core.svn.wordpress.org/trunk@41745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:36:50 +00:00
Sergey Biryukov
3951984680
I18N: Remove <b>
tag from a translatable string in post_submit_meta_box()
.
...
Props ramiy.
Fixes #41681 .
Built from https://develop.svn.wordpress.org/trunk@41910
git-svn-id: http://core.svn.wordpress.org/trunk@41744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:31:48 +00:00
Sergey Biryukov
6b2a4c4574
I18N: Remove <strong>
tag from a translatable string in Theme_Upgrader::install_strings()
.
...
Props ramiy.
Fixes #41695 .
Built from https://develop.svn.wordpress.org/trunk@41909
git-svn-id: http://core.svn.wordpress.org/trunk@41743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:20:48 +00:00
Sergey Biryukov
2b9e8abd8f
I18N: Remove <code>
tags from translatable strings in Core_Upgrader
, Language_Pack_Upgrader
, Plugin_Upgrader
, Theme_Upgrader
.
...
Props ramiy.
Fixes #41705 .
Built from https://develop.svn.wordpress.org/trunk@41908
git-svn-id: http://core.svn.wordpress.org/trunk@41742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:15:47 +00:00
Sergey Biryukov
fb8d73a0f7
Docs: Correct type and description for the $data
parameter in WP_Http::browser_redirect_compatibility()
.
...
Fixes #41380 .
Built from https://develop.svn.wordpress.org/trunk@41907
git-svn-id: http://core.svn.wordpress.org/trunk@41741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 16:38:48 +00:00
Sergey Biryukov
f9ff030127
I18N: Replace hardcoded file name in a translatable string in convert_to_screen()
with a placeholder.
...
Props ramiy.
Fixes #41668 .
Built from https://develop.svn.wordpress.org/trunk@41906
git-svn-id: http://core.svn.wordpress.org/trunk@41740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 15:46:52 +00:00
Sergey Biryukov
82dd23d36f
I18N: Make context for "Schedule" string added in [41898] more accurate.
...
Props ocean90.
Fixes #42165 .
Built from https://develop.svn.wordpress.org/trunk@41905
git-svn-id: http://core.svn.wordpress.org/trunk@41739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 15:39:52 +00:00
Sergey Biryukov
16bee559d4
I18N: Replace hardcoded file name in translatable strings in wp-admin/setup-config.php
with a placeholder.
...
Props ramiy, danieltj.
Fixes #42161 .
Built from https://develop.svn.wordpress.org/trunk@41904
git-svn-id: http://core.svn.wordpress.org/trunk@41738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 15:27:53 +00:00
Konstantin Obenland
d8f98b3649
Customize: Unstick filter pane in Theme selector
...
Prevents the filter pane from blocking the view of theme search results when it's open.
Users are now able to just scroll to view results.
Props rclations.
Fixes #42212 .
Built from https://develop.svn.wordpress.org/trunk@41903
git-svn-id: http://core.svn.wordpress.org/trunk@41737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 15:11:46 +00:00
Sergey Biryukov
ac5096d8bd
Embeds: Avoid "Division by zero" warning in embed-content.php
template if a thumbnail has a zero height.
...
Props stevenlinx, aegis123.
Fixes #40931 .
Built from https://develop.svn.wordpress.org/trunk@41902
git-svn-id: http://core.svn.wordpress.org/trunk@41736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 15:09:48 +00:00
Sergey Biryukov
a859b46e92
I18N: Replace function name in error message in WP_Http_Curl::request()
and WP_Http_Streams::request()
with a placeholder.
...
Props ramiy.
Fixes #41666 .
Built from https://develop.svn.wordpress.org/trunk@41901
git-svn-id: http://core.svn.wordpress.org/trunk@41735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 15:04:51 +00:00
Gary Pendergast
a2bd3e23d1
Dashboard: Ensure the "Dismiss" button on the Gutenberg callout is clickable.
...
Who likes z-index? We like z-index!
Props joemcgill.
See #41316 .
Built from https://develop.svn.wordpress.org/trunk@41900
git-svn-id: http://core.svn.wordpress.org/trunk@41734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 14:55:48 +00:00
Konstantin Obenland
261f0d8ef2
Customize: Allow menu creation in locations pane
...
Adds a link to the menu creation workflow from the locations selector in the nav menu control.
Props bpayton, westonruter, Travel_girl, melchoyce, celloexpressions.
Fixes #36279 .
Built from https://develop.svn.wordpress.org/trunk@41899
git-svn-id: http://core.svn.wordpress.org/trunk@41733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 14:51:47 +00:00
Sergey Biryukov
97bab0459a
I18N: Add a context for "Schedule" string.
...
Props Mirucon.
Fixes #42165 .
Built from https://develop.svn.wordpress.org/trunk@41898
git-svn-id: http://core.svn.wordpress.org/trunk@41732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 14:45:51 +00:00
Mel Choyce
0c73d35816
Code Editors: Fix display of "help" cursor.
...
Props studionashvegas .
Fixes #42210 .
Built from https://develop.svn.wordpress.org/trunk@41897
git-svn-id: http://core.svn.wordpress.org/trunk@41731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 13:11:49 +00:00
Gary Pendergast
df8ab820ef
Dashboard: Remove a rogue comma introduced in [41895].
...
See #41316 .
Built from https://develop.svn.wordpress.org/trunk@41896
git-svn-id: http://core.svn.wordpress.org/trunk@41730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 12:39:46 +00:00
Gary Pendergast
3981736cd6
Dashboard: Introduce a "Try Gutenberg" callout.
...
To encourage more people to try Gutenberg, this new Dashboard box allows site users to easily install and try out Gutenberg.
Props pento, melchoyce, joen, karmatosed.
Fixes #41316 .
Built from https://develop.svn.wordpress.org/trunk@41895
git-svn-id: http://core.svn.wordpress.org/trunk@41729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 10:04:47 +00:00
Weston Ruter
e914c0447c
Customize: Add missing filter docs in WP_Customize_Nav_Menu_Item_Setting::sanitize()
.
...
Props dlh.
Fixes #42257 .
Built from https://develop.svn.wordpress.org/trunk@41894
git-svn-id: http://core.svn.wordpress.org/trunk@41728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 04:57:50 +00:00
Weston Ruter
43b4a2577d
Customize: Improve theme browsing UI on small screens.
...
Props Mahvash-Fatima, melchoyce, celloexpressions.
See #37661 .
Fixes #42215 .
Built from https://develop.svn.wordpress.org/trunk@41893
git-svn-id: http://core.svn.wordpress.org/trunk@41727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 04:06:47 +00:00
Weston Ruter
41bb2125b0
Customize: Remove incorrect test assertions for the post_date
of customization drafts.
...
Amends [41887].
See #42220 .
Built from https://develop.svn.wordpress.org/trunk@41892
git-svn-id: http://core.svn.wordpress.org/trunk@41726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 02:41:49 +00:00
Weston Ruter
b4edf21599
Media: Add missing mediaelement-migrate.js
script to get uglified.
...
Amends [41877].
See #42189 , #39686 .
Built from https://develop.svn.wordpress.org/trunk@41891
git-svn-id: http://core.svn.wordpress.org/trunk@41725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 02:26:48 +00:00
Weston Ruter
7ee77760af
Widgets: Use a foreach
loop instead of The Loop to iterate over posts in Recent Posts widget to avoid needing to reset a polluted global $post
.
...
Props welcher, westonruter.
Amends [14607].
See #12320 .
Fixes #37312 .
Built from https://develop.svn.wordpress.org/trunk@41890
git-svn-id: http://core.svn.wordpress.org/trunk@41724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 00:34:46 +00:00
Weston Ruter
dce5306603
Media: Use user locale as ME.js language in admin and add mejsL10n
inline script before mediaelement-core
so WP-exported translation strings are used.
...
See #39686 .
Fixes #42241 .
Built from https://develop.svn.wordpress.org/trunk@41889
git-svn-id: http://core.svn.wordpress.org/trunk@41723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 00:08:45 +00:00
David A. Kennedy
b6539fb5a0
Twenty Seventeen: Fix double bottom-margins below embeds
...
Corrects an issue where both the containing paragraph and embed had bottom margins, causing unwanted extra space.
Props westonruter.
Fixes #42118 .
Built from https://develop.svn.wordpress.org/trunk@41888
git-svn-id: http://core.svn.wordpress.org/trunk@41722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-17 22:50:51 +00:00
Weston Ruter
bd9d1d9178
Customize: Allow post/page stubs to be edited in WP Admin as "customization drafts" when changeset is saved as draft or scheduled.
...
* Update stubs to have draft status when changeset is saved as draft, instead of preventing auto-draft garbage collection by giving them a far-future `post_date`.
* Show notice in publish metabox when editing a customization draft indicating that it will be published automatically with its changeset; a link to Customizer is included.
* Include a new "Customization Draft" display post state in the post list table.
* Disconnect stubs from their changesets when they are updated with a status other than "Draft".
* Trash customization drafts when their related changeset is trashed or deleted.
* Add a `_customize_changeset_uuid` postmeta to stubs to link them with their associated changeset.
* Include `customize_changeset_uuid` as context when requesting to insert a new auto-draft.
Props westonruter, melchoyce.
See #39896 , #39752 , #34923 .
Fixes #42220 .
Built from https://develop.svn.wordpress.org/trunk@41887
git-svn-id: http://core.svn.wordpress.org/trunk@41721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-17 20:15:52 +00:00
Weston Ruter
955d5b0ab1
Widgets: Prevent MediaElement.js player from overflowing sidebar in Audio widget.
...
Props bradyvercher.
See #39686 .
Fixes #42244 .
Built from https://develop.svn.wordpress.org/trunk@41886
git-svn-id: http://core.svn.wordpress.org/trunk@41720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 23:02:47 +00:00
Felix Arntz
021afced82
Role/Capability: Prevent a fatal error when checking a language capability early or in the frontend.
...
The meta capabilities `install_languages` and `update_languages` rely on the admin function `wp_can_install_language_pack()`. That function in turn relies on `request_filesystem_credentials()`, so it needs to be ensured that this function is available as well.
Fixes #42230 .
Built from https://develop.svn.wordpress.org/trunk@41885
git-svn-id: http://core.svn.wordpress.org/trunk@41719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 22:54:57 +00:00
Felix Arntz
3f8621b632
Multisite: Revert [41698] and [41743].
...
In order for `get_site_by()` to be truly beneficial, caching in `WP_Site_Query` needs to be improved to account for common use-cases and have them be invalidated less aggressively.
See #40180 , #40228 , #42091 .
Built from https://develop.svn.wordpress.org/trunk@41884
git-svn-id: http://core.svn.wordpress.org/trunk@41718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 22:35:47 +00:00
Felix Arntz
18789739c1
Multisite: Revert [41719].
...
While `get_site_by()` makes sense as a more explicit and less complex replacement for `get_blog_details()`, it is not ready yet in terms of caching, where it currently falls short of the older function under specific circumstances.
See #40180 , #40228 .
Built from https://develop.svn.wordpress.org/trunk@41883
git-svn-id: http://core.svn.wordpress.org/trunk@41717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 22:29:48 +00:00
Helen Hou-Sandí
bb66a52a14
Code Editors: Minor style improvements.
...
props melchoyce.
see #42214 .
Built from https://develop.svn.wordpress.org/trunk@41882
git-svn-id: http://core.svn.wordpress.org/trunk@41716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 21:36:48 +00:00
Boone Gorges
af960204b6
Taxonomy: Add note about $number
inconsistency to WP_Term_Query
docs.
...
Fixes #41796 .
Built from https://develop.svn.wordpress.org/trunk@41881
git-svn-id: http://core.svn.wordpress.org/trunk@41715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 18:38:48 +00:00
Boone Gorges
9f73875705
Don't force distinct term queries when specifying number
and object_ids
.
...
This reverts [41377], which caused performance problems on sites with a large
number of terms.
See #41796 .
Built from https://develop.svn.wordpress.org/trunk@41880
git-svn-id: http://core.svn.wordpress.org/trunk@41714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 18:35:47 +00:00
John Blackbourn
24783cfc3e
Media: Allow the unminified mediaelement script to be enqueued when SCRIPT_DEBUG
is true.
...
Props dsawardekar
Fixes #42229
Built from https://develop.svn.wordpress.org/trunk@41879
git-svn-id: http://core.svn.wordpress.org/trunk@41713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 18:15:47 +00:00
Andrea Fercia
575e60e96c
Administration: Improve consistency of the "not found" strings.
...
Partially reverts [41608] restoring the original strings without the word `query`.
See #37430 .
Fixes #42231 .
Built from https://develop.svn.wordpress.org/trunk@41878
git-svn-id: http://core.svn.wordpress.org/trunk@41712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-16 18:14:48 +00:00