web/wp-admin/link-add.php
branchwordpress
changeset 109 03b0d1493584
child 132 4d4862461b8d
equal deleted inserted replaced
-1:000000000000 109:03b0d1493584
       
     1 <?php
       
     2 /**
       
     3  * Add Link Administration Panel.
       
     4  *
       
     5  * @package WordPress
       
     6  * @subpackage Administration
       
     7  */
       
     8 
       
     9 /** Load WordPress Administration Bootstrap */
       
    10 require_once('admin.php');
       
    11 
       
    12 if ( ! current_user_can('manage_links') )
       
    13 	wp_die(__('You do not have sufficient permissions to add links to this blog.'));
       
    14 
       
    15 $title = __('Add New Link');
       
    16 $parent_file = 'link-manager.php';
       
    17 
       
    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[]'));
       
    22 
       
    23 wp_enqueue_script('link');
       
    24 wp_enqueue_script('xfn');
       
    25 
       
    26 $link = get_default_link_to_edit();
       
    27 include('edit-link-form.php');
       
    28 
       
    29 require('admin-footer.php');
       
    30 ?>