3 * Add Link Administration Screen.
6 * @subpackage Administration
9 /** Load WordPress Administration Bootstrap */
10 require_once('./admin.php');
12 if ( ! current_user_can('manage_links') )
13 wp_die(__('You do not have sufficient permissions to add links to this site.'));
15 $title = __('Add New Link');
16 $parent_file = 'link-manager.php';
18 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
19 'description', 'visible', 'target', 'category', 'link_id',
20 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
21 'notes', 'linkcheck[]'));
23 wp_enqueue_script('link');
24 wp_enqueue_script('xfn');
27 wp_enqueue_script( 'jquery-touch-punch' );
29 $link = get_default_link_to_edit();
30 include('./edit-link-form.php');
32 require('./admin-footer.php');