34899 Commits

Author SHA1 Message Date
Aaron Jorbin
729ea0a9f2 Bootstrap/Load: Revert Plugin Global restoration around advance-cache.php.
Merges [38251] to the 4.6 branch.

First added in [37588] and later modified in [38224], the idea was to ensure that filters/actions added before `advance-cache.php` would not disappear if `advance-cache.php` overloaded the filters/actions with code such as `$wp_filter = array()`. This is an edge case and one that there is no documented case of existing.

This restores the behavior from WordPress 4.5 and before. It is strongly encouraged that developers using `advance-cache.php` to use the Plugins API that is available before the loading of `advance-cache.php` rather than directly interacting with any of the globals.

Props azaozz, jorbin, dd32 for review, pento for review, westi for investigation, ipstenu for research.

See #36819.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38252 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-13 16:01:09 +00:00
Dominik Schilling
289d5ac855 About Page: Fix punctuation errors in two strings.
Merge of [38248] to the 4.6 branch.

See #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38249 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-11 20:53:11 +00:00
Dominik Schilling
d7792e4910 Post WordPress 4.6 RC 2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38247 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-11 00:21:48 +00:00
Dominik Schilling
a8c96a14e4 WordPress 4.6 RC 2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38246 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-11 00:15:44 +00:00
Dominik Schilling
07f754e291 About Page: Updates for 4.6.
Merge of [38213], [38215], [38234], and [38244] to the 4.6 branch.

Props hugobaeta, Ipstenu, SergeyBiryukov, Presskopp, jeremyfelt, afragen, helen, Clorith, macmanx, DrewAPicture, voldemortensen, jorbin, joemcgill, MattyRob, ocean90.
Fixes #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38245 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-10 23:56:14 +00:00
Dominik Schilling
c3f999e8e0 Upgrader: Rename class-wp-automatic-upgrader.php to class-wp-automatic-updater.php.
The class is named `WP_Automatic_Updater` not `WP_Automatic_Upgrader` like all the other upgrader classes. 

Introduced in [37409].

Merge of [38242] to the 4.6 branch.

Props DrewAPicture for review.
Fixes #37628.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38243 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-10 19:56:34 +00:00
Andrew Ozz
4d3a3a6417 Update/Install error messages: do not escape from the template, escape the error message string before inserting it.
Props swissspidy, ocean90.
Fixes #37623 for 4.6.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38241 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-10 19:05:02 +00:00
Drew Jaynes
a977def616 Update/Install: Provide basic back-compat styling for the .update-message CSS class in the plugins list table.
This change restores only the margin and padding styles for the `.update-message` class when used by plugins in the context of adding arbitrary rows to the list table. The inline-update colors and icon styles were not restored, expressly with a wide variety of plugin use-cases in mind.

Merge of [38237] to the 4.6 branch.

Props ovann86, rahulsprajapati, ocean90, DrewAPicture.
Props helen for review.
Fixes #37504. 


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38238 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 22:48:42 +00:00
Dominik Schilling
bce06728a4 Media: In _wp_handle_upload() use call_user_func_array() to call the upload error handler.
The default error handler `wp_handle_upload_error()` expects a reference for the first parameter but `call_user_func()` doesn't pass parameters by reference. The current code didn't produce any issues until now. PHP 7.0.9 (and PHP 7.1) is now stricter and prevents calling the error handler with a warning:
> PHP Warning:  Parameter 1 to wp_handle_upload_error() expected to be a reference, value given.

To restore the error handler `_wp_handle_upload()` now uses `call_user_func_array()`.

Merge of [38235] to the 4.6 branch.

Props jbrinley.
Props jorbin for review.
See #37570.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38236 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 21:55:04 +00:00
Jeremy Felt
3f69427282 Multisite: Remove unnecessary reference parameters.
There is no advantage to passing parameters by reference to `get_site()`, `get_network()`, and `update_site_cache()`.

Merge of [38232] to the 4.6 branch.

Props flixos90, ocean90 for review.
Fixes #37615.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38233 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 18:12:48 +00:00
Jeremy Felt
4f229e19d3 Multisite: Use get_current_blog_id() in get_site() for current site.
The global `$current_blog` is not switched in `switch_to_blog()` and can
not be used to properly retrieve current switched site information.

Merge of [38217] to the 4.6 branch.

Props ocean90 for review.
Fixes #37607.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38231 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 16:19:58 +00:00
Dominik Schilling
491d32f917 Updates: Add visual feedback when deleting themes/plugins.
This corrects the selector for the delete link in `wp.updates.deletePlugin()` so the text can be changed to 'Deleting…'. `wp.updates.deleteTheme()` already worked on wp-admin/themes.php but not on wp-admin/network/themes.php because the network screen is similar to the plugins list table, this is now fixed too.
The `credential-modal-cancel` handler has been updated to support canceled delete jobs.

Merge of [38227] to the 4.6 branch.

Props swissspidy.
Props jorbin for review.
See #37603.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38228 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 10:40:06 +00:00
Dominik Schilling
8cba42b9a9 Dashboard: Don't escape widget titles in screen reader text.
Introduced in [37972]. The title for the Quick Draft widget contains HTML to provide a JS/no-JS version.

Merge of [38225] to the 4.6 branch.

Props SergeyBiryukov for review.
See #37595.
See #37594.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38226 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 09:08:13 +00:00
Gary Pendergast
85da7a0908 Boostrap/Load: Improve forward compatiblity of plugin global backup methods.
[37588] added methods to backup the plugin globals, for ensuring that advanced cache drop-ins don't overwrite hooks that've been added earlier in the load process.

The method for restoring the plugin globals wasn't compatible with the implementation of `WP_Hook` in #17817. `WP_Hook` implements `ArrayAccess`, so `_restore_plugin_globals()` was treating it as an array, and inadvertantly overwriting the `WP_Hook` object with a plain array.

To avoid having to re-write this code as part of #17817, we now use `add_filter()` to restore any hooks that were added by cache drop-ins, which `WP_Hook` correctly supports.

Merge of [38223] with the 4.6 branch.

Props pento, jorbin.
Fixes #36819.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38224 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 01:50:21 +00:00
Aaron Jorbin
f47d932b19 Updates: Improve experience for Bulk Actions when FTP is dismissed.
Merges [38221] to the 4.6 branch.

Before this change, when a bulk update was canceled due dismissing the FTP credentials modal, part of the actions didn't get canceled. This meant the "There is a new version of…” notices become blank and the updates you had checked became unchecked. Now, the notices remain and you are essentially returned to the screen you had before. Strings are also updated to improve ARIA usage.

Fixes #37563.
Props ocean90, swissspidy, obenland, afercia.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38222 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 01:15:01 +00:00
Boone Gorges
e74f9a5c30 Improve category check in redirect_canonical() when permastruct contains category slug.
[37262] changed a check in `redirect_canonical()` so that it checked
categories in the object cache rather than querying the database. However,
the check was based on the identity of `WP_Term` objects, which in
certain cases can be augmented by the main WP query routine, causing
failures of the `in_array()` check. This caused unnecessary redirects
for URLs where `is_single()` is true, but the URL is different from the
post permalink, such as the `embed` endpoint.

`has_term()` also checks the cache, but does not sufer from this bug.

Merges [38216] to the 4.6 branch.

Props cmillerdev.
Fixes #36602.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38220 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-09 00:12:08 +00:00
Aaron Jorbin
a011a1e02e Updates: Standardize JS Custom Event Names
Merges [38218] in to 4.6 branch.

Custom JS events are triggered on the document in order for plugins to have something to hook into. The standard began in #31819 is dash separated and begins with wp to signify the namespace, followed by the subject of our action ( "theme", "plugin", etc.) followed by the action and an optional indicator of status ( "install-success", "deleting" ).

This brings some of the theme hooks in line with the standard. As of now, all plugin actions in src/wp-admin/js/updates.js have an equal corresponding theme action.

Fixes #37598.
See #37512, #37216, #31819.
Props olarmarius, ocean90.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38219 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-08 22:51:40 +00:00
Dominik Schilling
d3f17e6dbc Taxononmy: Set WP_Term_Query::terms when returning terms from the cache in WP_Term_Query::get_terms().
Merge of [38211] and [38212] to the 4.6 branch.

Props wonderboymusic.
Props boonebgorges for review.
Fixes #37591.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38214 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-08 13:13:56 +00:00
Dominik Schilling
692c93bc39 Update/Install: Remove the .notice-error class before adding classes for the update process.
Prevents displaying an update message with error styling.

Merge of [38209] to the 4.6 branch.

Props obenland.
Props SergeyBiryukov for review.
See #37550.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38210 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-05 23:00:30 +00:00
Dominik Schilling
55faf984c5 Customize: Increase the target size of the 'Edit Menu' button.
Merge of [38207] to the 4.6 branch.

Props celloexpressions.
Props afercia, helen for review.
See #36795.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38208 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-05 22:39:59 +00:00
Dominik Schilling
e7d0b4a0fa Update/Install: Replace "error" and "-1" failure messages with a more meaningful one.
* "-1" is an invalid nonce error, show 'An error has occurred. Please reload the page and try again.'.
* "error" means that the connection to the server was lost, show 'Connection lost or the server is busy. Please try again later.'.
* Escape the message in `wp-updates-admin-notice` because the response may include HTML.
* Remove HTML tags in `wp.updates.isValidResponse()` to make PHP's error messages more readable.

Merge of [38205] to the 4.6 branch.

Props azaozz for review.
See #37583.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38206 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-05 19:29:31 +00:00
Gary Pendergast
7515f95752 MediaElement: Remove translated string from a plugin WP doesn't bundle.
Merge of [38203] to the 4.6 branch.

Props nacin.
Fixes #37394.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38204 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-05 04:59:42 +00:00
John Blackbourn
e82f4313cd Docs: Correct and clarify various @since docs.
Fixes #37562

Merges [38201] to the 4.6 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38202 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-04 22:55:54 +00:00
Dominik Schilling
a6435d3555 Upgrade/Install: Make some install/update failures more verbose.
An upgrader class is used in conjunction with an upgrader skin class. A skin class handles the logging for an upgrade and informs a user about the progress and failures.
The current Ajax install/update handlers are using the `Automatic_Upgrader_Skin` class because during an Ajax request no output is intended. The difference between Ajax updates and automatic updates is that you will see the full log (usually by email) while Ajax updates focus only on success or failure. For that `Automatic_Upgrader_Skin` has one disadvantage: It doesn't provide a way to retrieve failure messages which were passed through `WP_Upgrader_Skin::error()` by the upgrader.
To solve this issue a new skin `WP_Ajax_Upgrader_Skin` has been introduced. The skin extends `Automatic_Upgrader_Skin` and overrides the `error()` and `feedback()` methods to intercept all errors, which can be a `WP_Error` object or a string.

This updates all four Ajax handler for installing/updating themes/plugins to use the new skin. They now also check the skin for any intercepted errors and pass them on to the user.

Merge of [38199] to the 4.6 branch.

Props flixos90, obenland, ocean90.
Props DrewAPicture, pento for review.
See #37531.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38200 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-04 22:22:46 +00:00
Dominik Schilling
48bcfbf0ed Plugins: Also update aria-labels when a plugin update fails.
Previously the label was stuck at "Updating…".

Merge of [38196] to the 4.6 branch.

Props afercia, ocean90.
Props DrewAPicture for review.
See #37556.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38197 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-04 21:06:31 +00:00
Dominik Schilling
100d9f918c Emoji: Update the Twemoji loader to include the rainbow flag.
[38179] added support for the rainbow flag to core, but platform compatibility is a bit strange, because the flag was defined out of sync with the usual Unicode release cycle. For example Android N supports all Unicode 9.0 emoji, but doesn't support the rainbow flag thus the rainbow flag isn't rendered.
The Twemoji loader already has an exception for flags - it'll load if the browser supports everything but flags, and then only replace flag emoji, leaving everything else as native rendering. To provide a seamless experience for all flags the loader now uses the rainbow flag to test flag support.

Merge of [38194] to the 4.6 branch.

Props pento.
See #37543.
See #37566.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38195 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-04 20:52:34 +00:00
Dion Hulse
0342ead47e Requests: Merge handling for custom HTTP methods.
This merges the latest changes to Requests from upstream to add support for custom HTTP methods.
See 1b5ffd8501

Props Ipstenu, ocean90.
Merges [38191] to the 4.6 branch.
Fixes #37503 for 4.6.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38192 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-04 07:21:18 +00:00
Dominik Schilling
8aa0bac010 Customize: Make the menu edit button look like a link.
The button was introduced in [37901] to allow users switching to the selected menu for further edits. A link makes it more clear that the user is taken away from the current view.
This also adds an aria label and makes the button label more verbose, 'Edit Menu'.

Merge of [38189] to the 4.6 branch.

Props afercia.
Props helen for review.
See #36795.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38190 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-03 22:46:54 +00:00
Aaron Jorbin
1cebcccec1 Updates: Clean up debug statements.
Merge of [38186] to the 4.6 branch

Removing some `console.error` calls leftover from development and wrapping the `console.log` call in a check to ensure `console.log` exists.

Fixes #37514.
Props ocean90, obenland



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38188 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-03 22:33:37 +00:00
Aaron Jorbin
399a91f582 Updates: Improve bulk update failure notice
Merge of [38185] to the 4.6 branch

When doing a bulk update, if there are failures the user needs to know about that. This makes it clearer that you can click on the notification to see more details, especially for screen reader users.

Fixes #37510.
Props juhise, Ankit K Gupta, afercia, jorbin, ocean90. 



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38187 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-03 22:32:09 +00:00
Dominik Schilling
a362caa106 About Page: First pass for 4.6 with strings (not yet translatable) and images (not CDN).
Merge of [38183] to the 4.6 branch.

Props macmanx, jorbin, hugobaeta, DrewAPicture, peterwilsoncc, iamfriendly, rahulsprajapati, vishalkakadiya, petya, celloexpressions, westonruter, mikeschroder, zetaraffix, mapk, boonebgorges, adamsilverstein, jeremyfelt, rosso99, karmatosed, swissspidy, michael-arestad, ramiy, ocean90.
See #37246.

git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38184 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-03 19:57:09 +00:00
Boone Gorges
97734d0933 In WP_Term_Query, accept a string value for taxonomy.
Merges [38181] to the 4.6 branch.

Props endocreative.
Props ocean90 for review.
Fixes #37545.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38182 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-03 13:53:25 +00:00
Gary Pendergast
0158102351 Emoji: Add support for the Rainbow and Pirate flag emoji.
Twemoji recently added images for the Rainbow and Pirate flags, and the latest iOS 10 beta added support for the Rainbow flag. Never let it be said that WordPress is at anything less than the cutting edge of emoji research and development.

Merge of [38179] to the 4.6 branch.

Props ocean90 for the code review.
Fixes #37543.



git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38180 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-03 00:12:17 +00:00
Aaron Jorbin
334987f07a Build/Test Tools: Add npm-shrinkwrap.json to 4.5.
By shrinkwraping our dependencies, the same versions of everything will be installed no matter what rules the dependency package.json has specified.

fixes #37541.


git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38177 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-01 19:40:53 +00:00
Dominik Schilling
83834118bd Branch 4.6
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38176 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-01 19:29:17 +00:00
Aaron Jorbin
11a5970263 Upgrade/Install: Trigger additional JS events in shiny updates
Events for updating exist, but they lack context. This adds args so that plugins can detec t what plugin/theme is being installed.  Additionally, events for bulk actions, deleting and that and install is starting didn't exist, so this adds them.

Fixes #37512.
Props DavidAnderson, and ocean90, swissspidy for review.



git-svn-id: https://develop.svn.wordpress.org/trunk@38175 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-31 18:56:57 +00:00
Dominik Schilling
48078058d7 Script Loader: Ignore deregistered dependencies in wp_dependencies_unique_hosts().
Prevents a PHP warning when a handle of a deregistered dependency is still in the queue.

Fixes #37502.

git-svn-id: https://develop.svn.wordpress.org/trunk@38174 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-31 18:24:21 +00:00
Dominik Schilling
11e4642c67 HTTP API: Set $use_authentication property of Requests_Proxy_HTTP to true when proxy authentication is required.
Props francescobagnoli for initial patch.
Fixes #37494.

git-svn-id: https://develop.svn.wordpress.org/trunk@38173 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-31 18:19:02 +00:00
Dominik Schilling
dbe140910b Plugins: Use install_plugins_upload action to print the upload form.
Since [37221] the upload form is added to every plugin install screen via `install_plugins_upload()`. Previously the form was added through the `install_plugins_upload` (alias of `install_plugins_$tab`) action which allowed plugin authors to replace the form. This restores the previous behaviour.

* Add the form only to non-upload plugin install screens.
* Replace `install_plugins_upload()` with the `install_plugins_upload` and `install_plugins_pre_upload` actions.
* Remove `$upload_tab_class` and add a CSS class for the current tab to `.wrap`
* Adjust CSS selectors and toggle the whole container to support upload without an `upload-plugin` class.

Props DavidAnderson, ocean90.
Fixes #37495.

git-svn-id: https://develop.svn.wordpress.org/trunk@38172 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-31 18:10:45 +00:00
Dominik Schilling
76a5d17bf5 Bundled Themes: Bump versions and update theme tags.
* Twenty Ten 2.2
* Twenty Eleven 2.5
* Twenty Twelve 2.1
* Twenty Thirteen 2.0
* Twenty Fourteen 1.8
* Twenty Fifteen 1.6

Props davidakennedy.
Fixes #37426.

git-svn-id: https://develop.svn.wordpress.org/trunk@38171 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-31 16:36:45 +00:00
Dominik Schilling
0eebac0404 Post WordPress 4.6 RC 1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@38170 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 18:59:49 +00:00
Dominik Schilling
366eada864 WordPress 4.6 RC 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@38169 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 18:28:30 +00:00
Dominik Schilling
af6b1a5388 Plugins: Move capability checks further up in wp_ajax_update_plugin() and wp_ajax_delete_plugin().
Add tests for both Ajax handlers.

Props Yorick Koster, swissspidy.
Fixes #37490.

git-svn-id: https://develop.svn.wordpress.org/trunk@38168 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 17:42:01 +00:00
Dominik Schilling
d097c1d916 Filesystem API: Output buffering for request_filesystem_credentials() should wrap the function directly.
Previously `ob_end_clean()` was only called when the previous condition was successful which led to unexpected results when another output buffering was involved, like PHPUnit's.

Fixes #37488.

git-svn-id: https://develop.svn.wordpress.org/trunk@38167 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 17:09:27 +00:00
Weston Ruter
3b28231001 Customize: Prevent customize-preview-widgets JS errors in preview if a sidebar is registered with empty before_widget/after_widget params.
Selective refresh will not be available for widgets when they lack these params, so previewing will fallback to full page refreshes. Sidebars registered as such should be rare so this accounts for an edge case.

Fixes #37478.


git-svn-id: https://develop.svn.wordpress.org/trunk@38166 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 16:26:22 +00:00
Dominik Schilling
2db9d7bee7 HTTP API: All non-GET/HEAD requests should put the arguments in the form body.
Requests defaults to _GET/query for HEAD/GET/DELETE and _POST/body for POST/PUT/OPTIONS/PATCH. For backward compatibility `WP_HTTP` needs to force `data_format` to 'body' for all non-GET/HEAD requests.

Props dd32.
Fixes #37456.

git-svn-id: https://develop.svn.wordpress.org/trunk@38165 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 15:51:19 +00:00
Dominik Schilling
24f890045c HTTP API: Normalize cookies before passing them to Requests.
Requests has its own cookie object in form of `Requests_Cookie`. Therefore we have to convert `WP_Http_Cookie` objects to `Requests_Cookie`.
This introduces `WP_Http_Cookie::get_attributes()` to retrieve cookie attributes of a `WP_Http_Cookie` object and `WP_Http::normalize_cookies()` to convert the cookie objects.

Fixes #37437.

git-svn-id: https://develop.svn.wordpress.org/trunk@38164 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 15:31:48 +00:00
Dominik Schilling
55e086355f HTTP API: Bump version of Requests to 1.7.
See #33055.

git-svn-id: https://develop.svn.wordpress.org/trunk@38163 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 14:54:57 +00:00
Sergey Biryukov
a2175c9ede I18N: After [38077], merge two duplicate strings in wp_insert_term() and wp_update_term().
Props ramiy.
See #18218.

git-svn-id: https://develop.svn.wordpress.org/trunk@38162 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 10:42:23 +00:00
Peter Wilson
d1aacf419e Script Loader: Clarify documentation of wp_resource_hints hook.
Specify that the `wp_resource_hints` hook is firing for a single relation type.

Props: dimadin for initial patch.
See #37458.


git-svn-id: https://develop.svn.wordpress.org/trunk@38161 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-27 10:35:04 +00:00