summaryrefslogtreecommitdiffstats
path: root/wp-admin/link-add.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-04 16:44:15 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-04 16:44:15 +0000
commit7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc (patch)
treec6fd23b598f3994eddb18cb1c0f2e8d95ff054fa /wp-admin/link-add.php
parentf650f48c048bfbbb2ae702b6425d87e39358d748 (diff)
downloadwordpress-mu-7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc.tar.gz
wordpress-mu-7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc.tar.xz
wordpress-mu-7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc.zip
Merged with WordPress 2.5, unstable, only for testing
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1218 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/link-add.php')
-rw-r--r--wp-admin/link-add.php21
1 files changed, 7 insertions, 14 deletions
diff --git a/wp-admin/link-add.php b/wp-admin/link-add.php
index 2b06d8e..20e60fd 100644
--- a/wp-admin/link-add.php
+++ b/wp-admin/link-add.php
@@ -3,7 +3,7 @@ require_once('admin.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',
@@ -11,9 +11,10 @@ wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
'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');
+wp_enqueue_script('thickbox');
+
require('admin-header.php');
?>
@@ -22,16 +23,8 @@ require('admin-header.php');
<?php endif; ?>
<?php
- $link = get_default_link_to_edit();
- include('edit-link-form.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>
-
-<?php
require('admin-footer.php');
?>