]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link.php
WordPress 3.4
[autoinstalls/wordpress.git] / wp-admin / link.php
index 1eca284631a8f2510e1d35d435053fa5e526b164..9e2d6a86a6bf536b1e8f37198264c0b861f16d2e 100644 (file)
@@ -24,7 +24,7 @@ if ( !empty($_POST['move']) )
 if ( !empty($_POST['linkcheck']) )
        $linkcheck = $_POST['linkcheck'];
 
 if ( !empty($_POST['linkcheck']) )
        $linkcheck = $_POST['linkcheck'];
 
-$this_file = 'link-manager.php';
+$this_file = admin_url('link-manager.php');
 
 switch ($action) {
        case 'deletebookmarks' :
 
 switch ($action) {
        case 'deletebookmarks' :
@@ -99,6 +99,9 @@ switch ($action) {
                wp_enqueue_script('link');
                wp_enqueue_script('xfn');
 
                wp_enqueue_script('link');
                wp_enqueue_script('xfn');
 
+               if ( wp_is_mobile() )
+                       wp_enqueue_script( 'jquery-touch-punch' );
+
                $parent_file = 'link-manager.php';
                $submenu_file = 'link-manager.php';
                $title = __('Edit Link');
                $parent_file = 'link-manager.php';
                $submenu_file = 'link-manager.php';
                $title = __('Edit Link');
@@ -115,4 +118,3 @@ switch ($action) {
        default :
                break;
 }
        default :
                break;
 }
-?>