Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014

git-svn-id: https://develop.svn.wordpress.org/trunk@20433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2012-04-11 02:20:51 +00:00
parent 96a2b2be8a
commit 3b9e5468e1
9 changed files with 194 additions and 2 deletions

View File

@@ -12,6 +12,9 @@ if ( !defined('ABSPATH') )
wp_enqueue_script('post');
if ( wp_is_mobile() )
wp_enqueue_script( 'jquery-touch-punch' );
if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) {
add_thickbox();
wp_enqueue_script('media-upload');