Press This: fix iOS bug that prevents closing of the split button when tapping outside of it.

See #32757.
Built from https://develop.svn.wordpress.org/trunk@32966


git-svn-id: http://core.svn.wordpress.org/trunk@32937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-06-27 02:15:24 +00:00
parent 8b1286417e
commit 7715a50c0b
3 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,7 @@
isOffScreen = 'is-off-screen',
isHidden = 'is-hidden',
offscreenHidden = isOffScreen + ' ' + isHidden,
iOS = /iPad|iPod|iPhone/.test( window.navigator.userAgent ),
transitionEndEvent = ( function() {
var style = document.documentElement.style;
@ -619,6 +620,11 @@
if ( window.tagBox ) {
window.tagBox.init();
}
// iOS doesn't fire click events on "standard" elements without this...
if ( iOS ) {
$( document.body ).css( 'cursor', 'pointer' );
}
}
/**

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32965';
$wp_version = '4.3-alpha-32966';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.