Ticket #31652: 31652.2.diff
File 31652.2.diff, 3.9 KB (added by , 8 years ago) |
---|
-
src/wp-admin/edit-form-advanced.php
38 38 $_wp_editor_expand = ( get_user_setting( 'editor_expand', 'on' ) === 'on' ); 39 39 } 40 40 41 if ( wp_is_mobile() ) 42 wp_enqueue_script( 'jquery-touch-punch' ); 41 wp_enqueue_script( 'jquery-touch-punch' ); 43 42 44 43 /** 45 44 * Post ID global -
src/wp-admin/index.php
25 25 wp_enqueue_script( 'media-upload' ); 26 26 add_thickbox(); 27 27 28 if ( wp_is_mobile() ) 29 wp_enqueue_script( 'jquery-touch-punch' ); 28 wp_enqueue_script( 'jquery-touch-punch' ); 30 29 31 30 $title = __('Dashboard'); 32 31 $parent_file = 'index.php'; -
src/wp-admin/link-add.php
20 20 wp_enqueue_script('link'); 21 21 wp_enqueue_script('xfn'); 22 22 23 if ( wp_is_mobile() ) 24 wp_enqueue_script( 'jquery-touch-punch' ); 23 wp_enqueue_script( 'jquery-touch-punch' ); 25 24 26 25 $link = get_default_link_to_edit(); 27 26 include( ABSPATH . 'wp-admin/edit-link-form.php' ); -
src/wp-admin/link.php
96 96 wp_enqueue_script('link'); 97 97 wp_enqueue_script('xfn'); 98 98 99 if ( wp_is_mobile() ) 100 wp_enqueue_script( 'jquery-touch-punch' ); 99 wp_enqueue_script( 'jquery-touch-punch' ); 101 100 102 101 $parent_file = 'link-manager.php'; 103 102 $submenu_file = 'link-manager.php'; -
src/wp-admin/nav-menus.php
29 29 30 30 wp_enqueue_script( 'nav-menu' ); 31 31 32 if ( wp_is_mobile() ) 33 wp_enqueue_script( 'jquery-touch-punch' ); 32 wp_enqueue_script( 'jquery-touch-punch' ); 34 33 35 34 // Container for any messages displayed to the user 36 35 $messages = array(); -
src/wp-admin/widgets.php
31 31 } else { 32 32 wp_enqueue_script('admin-widgets'); 33 33 34 if ( wp_is_mobile() ) 35 wp_enqueue_script( 'jquery-touch-punch' ); 34 wp_enqueue_script( 'jquery-touch-punch' ); 36 35 } 37 36 38 37 /** -
src/wp-includes/js/media/views/attachments.js
156 156 initSortable: function() { 157 157 var collection = this.collection; 158 158 159 if ( wp.media.isTouchDevice ||! this.options.sortable || ! $.fn.sortable ) {159 if ( ! this.options.sortable || ! $.fn.sortable ) { 160 160 return; 161 161 } 162 162 … … 215 215 }, 216 216 217 217 refreshSortable: function() { 218 if ( wp.media.isTouchDevice ||! this.options.sortable || ! $.fn.sortable ) {218 if ( ! this.options.sortable || ! $.fn.sortable ) { 219 219 return; 220 220 } 221 221 -
src/wp-includes/js/media-views.js
3588 3588 initSortable: function() { 3589 3589 var collection = this.collection; 3590 3590 3591 if ( wp.media.isTouchDevice ||! this.options.sortable || ! $.fn.sortable ) {3591 if ( ! this.options.sortable || ! $.fn.sortable ) { 3592 3592 return; 3593 3593 } 3594 3594 … … 3647 3647 }, 3648 3648 3649 3649 refreshSortable: function() { 3650 if ( wp.media.isTouchDevice ||! this.options.sortable || ! $.fn.sortable ) {3650 if ( ! this.options.sortable || ! $.fn.sortable ) { 3651 3651 return; 3652 3652 } 3653 3653