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-scripts
[autoinstalls/wordpress.git]
/
wp-admin
/
link-add.php
diff --git
a/wp-admin/link-add.php
b/wp-admin/link-add.php
index 808886a6ebe341638e5fe5508489d1775a054329..d15fb9315fbf8a306139514f385659cbcaeb1e1c 100644
(file)
--- a/
wp-admin/link-add.php
+++ b/
wp-admin/link-add.php
@@
-1,13
+1,13
@@
<?php
/**
<?php
/**
- * Add Link Administration
Panel
.
+ * Add Link Administration
Screen
.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
-require_once(
'./admin.php'
);
+require_once(
dirname( __FILE__ ) . '/admin.php'
);
if ( ! current_user_can('manage_links') )
wp_die(__('You do not have sufficient permissions to add links to this site.'));
if ( ! current_user_can('manage_links') )
wp_die(__('You do not have sufficient permissions to add links to this site.'));
@@
-15,16
+15,15
@@
if ( ! current_user_can('manage_links') )
$title = __('Add New Link');
$parent_file = 'link-manager.php';
$title = __('Add New Link');
$parent_file = 'link-manager.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' ) );
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' );
+
$link = get_default_link_to_edit();
$link = get_default_link_to_edit();
-include(
'./edit-link-form.php'
);
+include(
ABSPATH . 'wp-admin/edit-link-form.php'
);
-require('./admin-footer.php');
-?>
+require( ABSPATH . 'wp-admin/admin-footer.php' );