Commit Graph

34942 Commits

Author SHA1 Message Date
Jeremy Felt 575e4ef0db TinyMCE: change the default font for the vi locale to the same stack as he_IL.
Merge of [38427] to the 4.6 branch.

Props azaozz, nmt90 for reporting and testing.
Fixes #37755.

Built from https://develop.svn.wordpress.org/branches/4.6@38472


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-31 17:16:31 +00:00
Dion Hulse 6ddc8affb1 HTTP: Accept non-string values in cookies, fixing a regression since 4.5.
Props swissspidy.
Merges [38430] to the 4.6 branch.
Fixes #37768.

Built from https://develop.svn.wordpress.org/branches/4.6@38461


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-31 06:07:31 +00:00
Dion Hulse c53ae0299a Bootstrap: Check that ini_get_all() exists before calling it, allows us to work around hosts who disable the function for "security purposes".
Merges [38431] to the 4.6 branch.
Fixes #37680.

Built from https://develop.svn.wordpress.org/branches/4.6@38460


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-31 06:06:32 +00:00
Gary Pendergast 33c1c022e3 Database: Don't force an unsupported character set that previously would've silently failed.
[37320] corrected some behaviour in how PHP and MySQL character sets are matched up. This was correct, but had the side effect of causing some incorrectly configured sites to start failing.

Prior to [37320], if `DB_CHARSET` was set to `utf8mb4`, but the PHP version didn't support `utf8mb4`, it would fall back to the default character set - usually `latin1`. After [37320], the `SET NAMES` query would force MySQL to treat the connection character set as `utf8mb4`, even if PHP wasn't able to understand it.

By checking if `mysqli_set_charset()` succeeded, we can simulate the old behaviour, while maintaining the fix in [37320].

Merge of [38441] to the 4.6 branch.

Props danielkanchev fo helping to diagnose this issue.
Fixes #37689.


Built from https://develop.svn.wordpress.org/branches/4.6@38442


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-30 07:42:49 +00:00
Gary Pendergast 1b8d23ca29 Database: Ensure that variables are defined correctly.
There were some cases where some local variables in `wpdb::init_charset()` could be undefined when they were used.

Merge of [38439] to the 4.6 branch.

Props Frozzare.
Fixes #37683.


Built from https://develop.svn.wordpress.org/branches/4.6@38440


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-30 07:17:42 +00:00
Boone Gorges 97095d54c3 In `is_object_in_term()`, return error object rather than caching it.
This change prevents an error object from being stored in the cache,
and prevents notices from being thrown when plucking term IDs to put
into the relationship cache.

See #32044, #36814.

Merges [38277] to the 4.6 branch.

Props rpayne7264.
Fixes #37721.

Built from https://develop.svn.wordpress.org/branches/4.6@38346


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-24 09:20:36 +00:00
Pascal Birchler a624b1c967 External Libraries: Update minified version of jquery.masonry.js.
WordPress maintains the minified version of jquery.masonry.js since there is no official build, however it has been excluded from grunt's minification process. This adds a minification task to grunt, adds it to the precommit hook for JS, minifies the file, and bumps the version on jquery.masonry.min.js. The change to the non minified version was introduced in [38261].

Merge of [38276] and [38281] to the 4.6 branch.

Fixes #37720.  See #37666.
Built from https://develop.svn.wordpress.org/branches/4.6@38339


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-23 16:08:28 +00:00
Pascal Birchler 3fd7c7eba1 Requests: Update to Requests master (fb5b517) which corrects a logic inversion in the cURL transport checks.
Previously if a host had only disabled one of `curl_init()` or `curl_exec()` it wouldn't get detected correctly by Requests, which caused cURL warnings for users on an affected host.

Merge of [38274] to the 4.6 branch.

Fixes #37700.
Built from https://develop.svn.wordpress.org/branches/4.6@38338


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-23 15:55:31 +00:00
Boone Gorges 873999207d Mail: Don't set Sender field when setting From.
[38058] changed `wp_mail()` so that it used PHPMailer's `setFrom()`
method rather than setting the From and FromName headers directly. See
behavior of setting the `Sender` field. This causes `mail` to be
called with the `-f` flag, which causes outgoing email to fail on some
server environments.

Merges [38286] to the 4.6 branch.

Props Clorith, iandunn, DrewAPicture.
Fixes #37736. 

Built from https://develop.svn.wordpress.org/branches/4.6@38287


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-20 02:21:32 +00:00
Dominik Schilling 96a453bca5 The 4.6 branch is now 4.6.1-alpha.
Built from https://develop.svn.wordpress.org/branches/4.6@38271


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-16 20:39:31 +00:00
Dominik Schilling 854cbe7cf1 WordPress 4.6.
Built from https://develop.svn.wordpress.org/branches/4.6@38269


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-16 18:19:30 +00:00
Dominik Schilling 73d78fbe90 About Page: Add release video and move images to CDN.
Merge of [38267] to the 4.6 branch.

Props JerrySarcastic, rosso99, petya, hugobaeta, RoseAppleMedia.
See #37246.
Built from https://develop.svn.wordpress.org/branches/4.6@38268


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-16 18:02:01 +00:00
Dominik Schilling a560559c37 Post WordPress 4.6 RC 4 version bump.
Built from https://develop.svn.wordpress.org/branches/4.6@38266


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-15 19:30:30 +00:00
Dominik Schilling 9c4763f8c4 WordPress 4.6 RC 4.
Built from https://develop.svn.wordpress.org/branches/4.6@38265


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-15 19:22:30 +00:00
Dominik Schilling 329a17f59a Post Thumbnails: Restore thumbnail support for media files.
* Allow to add/remove a featured image to `attachment:audio` and `attachment:video` post types, see [27657].
* Change conditionals to check for theme OR post type support.
* Add tests for #12922.

Broken in [37658].

Merge of [38263] to the 4.6 branch.

Props flixos90, joemcgill, DrewAPicture, wonderboymusic.
See #12922.
See #37658.
Built from https://develop.svn.wordpress.org/branches/4.6@38264


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-15 19:18:30 +00:00
Aaron Jorbin 58e1032e13 External Libraries: Update Masonry shim to prevent error using isAnimated option
Merges [38261] to the 4.6 branch.

The isAnimated option throws an error and causes Masonry to stop functioning. Masonry.prototype.options is no longer defined in 3.3.2, this.options is and does the same. Masonry was updated to 3.3.2 in [37891].

Reported upstream: https://github.com/desandro/masonry-v2-3-shim/pull/1

Props stephenharris, ocean90, azaozz for testing and second sign off.
Fixes #37666.
See #32802.

Built from https://develop.svn.wordpress.org/branches/4.6@38262


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-15 18:22:30 +00:00
Dominik Schilling d0b90431df Post WordPress 4.6 RC 3 version bump.
Built from https://develop.svn.wordpress.org/branches/4.6@38260


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-13 19:55:29 +00:00
Dominik Schilling 8742490da7 WordPress 4.6 RC 3.
Built from https://develop.svn.wordpress.org/branches/4.6@38259


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-13 19:49:29 +00:00
Dominik Schilling 9652a4916b About Page: Enhance responsive images.
* Add `srcset` and `sizes` to the mobile image for streamlined updates.
* Modify the order of image candidate strings in each `srcset` to address a bug in iOS8 where the first candidate will always be selected when using `w` descriptors, see #35030.

Merge of [38257] to the 4.6 branch.

Props joemcgill.
See #37246.
Built from https://develop.svn.wordpress.org/branches/4.6@38258


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-13 19:33:31 +00:00
Dominik Schilling 9a51ff0799 Script Loader: Fix protocol-relative URLs for the `preconnect` relation type.
`wp_resource_hints()` parses the URL for the `preconnect` and `dns-prefetch` relation types to ensure correct values for both. While protocol-relative URLs are supported for `dns-prefetch`, the double slash was lost for `preconnect`.

Merge of [38255] to the 4.6 branch.

Props swissspidy, peterwilsoncc.
Props azaozz for review.
See #37652.
Built from https://develop.svn.wordpress.org/branches/4.6@38256


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-13 18:40:34 +00:00
Aaron Jorbin 4d1a6af1ba 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.


Built from https://develop.svn.wordpress.org/branches/4.6@38252


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-13 16:02:31 +00:00
Dominik Schilling 05eb0237ce About Page: Fix punctuation errors in two strings.
Merge of [38248] to the 4.6 branch.

See #37246.
Built from https://develop.svn.wordpress.org/branches/4.6@38249


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-11 20:54:54 +00:00
Dominik Schilling a1e4485b61 Post WordPress 4.6 RC 2 version bump.
Built from https://develop.svn.wordpress.org/branches/4.6@38247


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-11 00:22:30 +00:00
Dominik Schilling 6818f62d6a WordPress 4.6 RC 2.
Built from https://develop.svn.wordpress.org/branches/4.6@38246


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-11 00:16:29 +00:00
Dominik Schilling 73f3896134 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38245


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-10 23:57:30 +00:00
Dominik Schilling 7fec14f382 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38243


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-10 19:57:30 +00:00
Andrew Ozz ae8722f109 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38241


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-10 19:06:31 +00:00
Drew Jaynes 444cb81b45 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. 

Built from https://develop.svn.wordpress.org/branches/4.6@38238


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 22:49:33 +00:00
Dominik Schilling dd5cb26de2 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38236


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 21:56:30 +00:00
Jeremy Felt 88c32598af 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.

Built from https://develop.svn.wordpress.org/branches/4.6@38233


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 18:13:31 +00:00
Jeremy Felt 902420b294 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.

Built from https://develop.svn.wordpress.org/branches/4.6@38231


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 16:20:31 +00:00
Dominik Schilling 9c0dfce2ac 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38228


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 10:41:36 +00:00
Dominik Schilling 8631cb86cf 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38226


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 09:09:32 +00:00
Gary Pendergast 1bbe957cc3 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.


Built from https://develop.svn.wordpress.org/branches/4.6@38224


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 01:51:29 +00:00
Aaron Jorbin c63e673361 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.


Built from https://develop.svn.wordpress.org/branches/4.6@38222


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 01:15:29 +00:00
Boone Gorges 14fa6a89ca 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.

Built from https://develop.svn.wordpress.org/branches/4.6@38220


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-09 00:13:31 +00:00
Aaron Jorbin dcf9711226 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.

Built from https://develop.svn.wordpress.org/branches/4.6@38219


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-08 22:52:29 +00:00
Dominik Schilling c959c32860 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38214


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-08 13:14:37 +00:00
Dominik Schilling f6cbf30494 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38210


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-05 23:01:29 +00:00
Dominik Schilling 621f4f97e5 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38208


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-05 22:40:30 +00:00
Dominik Schilling b5de2df420 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38206


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-05 19:30:31 +00:00
Gary Pendergast 0a65e04101 MediaElement: Remove translated string from a plugin WP doesn't bundle.
Merge of [38203] to the 4.6 branch.

Props nacin.
Fixes #37394.


Built from https://develop.svn.wordpress.org/branches/4.6@38204


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-05 05:00:32 +00:00
John Blackbourn 4ca40b65ec Docs: Correct and clarify various `@since` docs.
Fixes #37562

Merges [38201] to the 4.6 branch.

Built from https://develop.svn.wordpress.org/branches/4.6@38202


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-04 22:56:41 +00:00
Dominik Schilling 9501efd09f 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38200


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-04 22:23:39 +00:00
Dominik Schilling 6ece312820 Plugins: Also update `aria-label`s 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38197


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-04 21:07:35 +00:00
Dominik Schilling 6b9501b9c7 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38195


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-04 20:53:32 +00:00
Dion Hulse a72eb16e91 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.

Built from https://develop.svn.wordpress.org/branches/4.6@38192


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-04 07:22:35 +00:00
Dominik Schilling 1a6b25088a 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.
Built from https://develop.svn.wordpress.org/branches/4.6@38190


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-03 22:47:31 +00:00
Aaron Jorbin b4cc5d511b 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


Built from https://develop.svn.wordpress.org/branches/4.6@38188


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-03 22:34:29 +00:00
Aaron Jorbin 7eccc12e97 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. 


Built from https://develop.svn.wordpress.org/branches/4.6@38187


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-03 22:33:30 +00:00