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 2abd79952ffa5788c2412f56482ddae1f475a0a2..d15fb9315fbf8a306139514f385659cbcaeb1e1c 100644
(file)
--- a/
wp-admin/link-add.php
+++ b/
wp-admin/link-add.php
@@
-7,7
+7,7
@@
*/
/** Load WordPress Administration Bootstrap */
*/
/** 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,10
+15,7
@@
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');
@@
-27,6
+24,6
@@
if ( wp_is_mobile() )
wp_enqueue_script( 'jquery-touch-punch' );
$link = get_default_link_to_edit();
wp_enqueue_script( 'jquery-touch-punch' );
$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'
);