]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link-add.php
WordPress 4.2.5-scripts
[autoinstalls/wordpress.git] / wp-admin / link-add.php
index 2abd79952ffa5788c2412f56482ddae1f475a0a2..d15fb9315fbf8a306139514f385659cbcaeb1e1c 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 /** 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.'));
@@ -15,10 +15,7 @@ if ( ! current_user_can('manage_links') )
 $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');
@@ -27,6 +24,6 @@ if ( wp_is_mobile() )
        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' );