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 4.7.1-scripts
[autoinstalls/wordpress.git]
/
wp-admin
/
link-add.php
diff --git
a/wp-admin/link-add.php
b/wp-admin/link-add.php
index e0e4489a7de7f2f122174222eac7362309a47da2..423c6680e5db2ab8c89e999e5527a8c262b52213 100644
(file)
--- a/
wp-admin/link-add.php
+++ b/
wp-admin/link-add.php
@@
-1,30
+1,29
@@
<?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') )
if ( ! current_user_can('manage_links') )
- wp_die(__('
You do not have sufficient permissions to add links to this blog
.'));
+ wp_die(__('
Sorry, you are not allowed to add links to this site
.'));
$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');
-?>
\ No newline at end of file
+require( ABSPATH . 'wp-admin/admin-footer.php' );