]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/link-add.php
be3f0403738adaf1d49047d4fd619fde327f1f4e
[autoinstalls/wordpress.git] / wp-admin / link-add.php
1 <?php
2 require_once('admin.php');
3
4 $title = __('Add Link');
5 $this_file = 'link-manager.php';
6 $parent_file = 'post-new.php';
7
8
9 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
10         'description', 'visible', 'target', 'category', 'link_id',
11         'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
12         'notes', 'linkcheck[]'));
13
14 wp_enqueue_script('link');
15 wp_enqueue_script('xfn');
16 wp_enqueue_script('thickbox');
17
18 require('admin-header.php');
19 ?>
20
21 <?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>
22 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
23 <?php endif; ?>
24
25 <?php
26 $link = get_default_link_to_edit();
27 include('edit-link-form.php');
28
29 require('admin-footer.php');
30 ?>