Files
WordPress/wp-admin/link-add.php
T

31 lines
747 B
PHP
Raw Normal View History

<?php
/**
* Add Link Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
2009-08-02 02:23:54 +00:00
if ( ! current_user_can('manage_links') )
wp_die(__('You do not have sufficient permissions to add links to this site.'));
2009-08-02 02:23:54 +00:00
2008-10-17 20:02:03 +00:00
$title = __('Add New Link');
2008-09-25 19:33:53 +00:00
$parent_file = 'link-manager.php';
2005-01-06 09:46:52 +00:00
2006-07-03 19:03:37 +00:00
wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
'description', 'visible', 'target', 'category', 'link_id',
'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
'notes', 'linkcheck[]'));
2004-04-28 05:34:50 +00:00
wp_enqueue_script('link');
wp_enqueue_script('xfn');
$link = get_default_link_to_edit();
include('./edit-link-form.php');
require('./admin-footer.php');
?>