scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 3.9.2-scripts
[autoinstalls/wordpress.git]
/
wp-admin
/
link.php
diff --git
a/wp-admin/link.php
b/wp-admin/link.php
index 922f96cccc4119767234c3ecb11ceef768bf1fe1..1b27ce7de72c4074f1ec81fcaf472c6bbfa841b0 100644
(file)
--- a/
wp-admin/link.php
+++ b/
wp-admin/link.php
@@
-10,12
+10,12
@@
*/
/** Load WordPress Administration Bootstrap */
*/
/** Load WordPress Administration Bootstrap */
-require_once
('admin.php'
);
+require_once
( dirname( __FILE__ ) . '/admin.php'
);
-wp_reset_vars(
array('action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]')
);
+wp_reset_vars(
array( 'action', 'cat_id', 'link_id' )
);
if ( ! current_user_can('manage_links') )
if ( ! current_user_can('manage_links') )
- wp_
die( __('You do not have sufficient permissions to edit the links for this site.')
);
+ wp_
link_manager_disabled_message(
);
if ( !empty($_POST['deletebookmarks']) )
$action = 'deletebookmarks';
if ( !empty($_POST['deletebookmarks']) )
$action = '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');
@@
-108,11
+111,10
@@
switch ($action) {
if (!$link = get_link_to_edit($link_id))
wp_die(__('Link not found.'));
if (!$link = get_link_to_edit($link_id))
wp_die(__('Link not found.'));
- include
('edit-link-form.php'
);
- include
('admin-footer.php'
);
+ include
( ABSPATH . 'wp-admin/edit-link-form.php'
);
+ include
( ABSPATH . 'wp-admin/admin-footer.php'
);
break;
default :
break;
}
break;
default :
break;
}
-?>