]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link-add.php
WordPress 4.7.2-scripts
[autoinstalls/wordpress.git] / wp-admin / link-add.php
index 6f9c5678e80d4415af083b85a26c08670c6f8b74..423c6680e5db2ab8c89e999e5527a8c262b52213 100644 (file)
@@ -7,10 +7,10 @@
  */
 
 /** 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.'));
+       wp_die(__('Sorry, you are not allowed to add links to this site.'));
 
 $title = __('Add New Link');
 $parent_file = 'link-manager.php';
@@ -24,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' );