mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
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:
@@ -25,11 +25,15 @@ function wp_widgets_access_body_class($classes) {
|
||||
return "$classes widgets_access ";
|
||||
}
|
||||
|
||||
if ( 'on' == $widgets_access )
|
||||
if ( 'on' == $widgets_access ) {
|
||||
add_filter( 'admin_body_class', 'wp_widgets_access_body_class' );
|
||||
else
|
||||
} else {
|
||||
wp_enqueue_script('admin-widgets');
|
||||
|
||||
if ( wp_is_mobile() )
|
||||
wp_enqueue_script( 'jquery-touch-punch' );
|
||||
}
|
||||
|
||||
do_action( 'sidebar_admin_setup' );
|
||||
|
||||
$title = __( 'Widgets' );
|
||||
|
||||
Reference in New Issue
Block a user