]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link-add.php
Wordpress 2.6.2
[autoinstalls/wordpress.git] / wp-admin / link-add.php
index 2b06d8ec0b9d9a2970134147c2badd234ceb7b9a..4b6493b548f55821c75145fb86ba52c10df6fa70 100644 (file)
@@ -3,7 +3,7 @@ require_once('admin.php');
 
 $title = __('Add Link');
 $this_file = 'link-manager.php';
 
 $title = __('Add Link');
 $this_file = 'link-manager.php';
-$parent_file = 'link-manager.php';
+$parent_file = 'post-new.php';
 
 
 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
 
 
 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
@@ -11,9 +11,9 @@ wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
        'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
        'notes', 'linkcheck[]'));
 
        'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
        'notes', 'linkcheck[]'));
 
-wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') );
-if ( current_user_can( 'manage_categories' ) )
-       wp_enqueue_script( 'ajaxlinkcat' );
+wp_enqueue_script('link');
+wp_enqueue_script('xfn');
+
 require('admin-header.php');
 ?>
 
 require('admin-header.php');
 ?>
 
@@ -22,16 +22,8 @@ require('admin-header.php');
 <?php endif; ?>
 
 <?php
 <?php endif; ?>
 
 <?php
-       $link = get_default_link_to_edit();
-       include('edit-link-form.php');
-?>
-
-<div id="wp-link-bookmarklet"  class="wrap">
-<h3><?php _e('Add Link Bookmarklet'); ?></h3>
-<p><?php _e('Right click on the following link and choose &#0147;Bookmark This Link...&#0148; or &#0147;Add to Favorites...&#0148; to create a Link This shortcut.'); ?></p>
-<?php printf('<p><a href="%s" title="'.__('Link add bookmarklet').'">'.__('Link This').'</a></p>', "javascript:void(linkmanpopup=window.open('" . get_option('siteurl') . "/wp-admin/link-add.php?action=popup&amp;linkurl='+escape(location.href)+'&amp;name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?>
-</div>
+$link = get_default_link_to_edit();
+include('edit-link-form.php');
 
 
-<?php
 require('admin-footer.php');
 require('admin-footer.php');
-?>
+?>
\ No newline at end of file