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