2003-12-23 16:47:03 -05:00
|
|
|
<?php
|
2008-08-14 02:30:38 -04:00
|
|
|
/**
|
2011-04-28 11:24:49 -04:00
|
|
|
* Add Link Administration Screen.
|
2008-08-14 02:30:38 -04:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Administration Bootstrap */
|
2013-09-24 20:18:11 -04:00
|
|
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
2003-12-23 16:47:03 -05:00
|
|
|
|
2009-08-01 22:23:54 -04:00
|
|
|
if ( ! current_user_can('manage_links') )
|
2016-06-29 11:16:29 -04:00
|
|
|
wp_die(__('Sorry, you are not allowed to add links to this site.'));
|
2009-08-01 22:23:54 -04:00
|
|
|
|
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
|
|
|
|
2013-02-16 13:28:41 -05:00
|
|
|
wp_reset_vars( array('action', 'cat_id', 'link_id' ) );
|
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
|
|
|
|
2012-04-10 22:20:51 -04:00
|
|
|
if ( wp_is_mobile() )
|
|
|
|
wp_enqueue_script( 'jquery-touch-punch' );
|
|
|
|
|
2008-02-25 01:30:38 -05:00
|
|
|
$link = get_default_link_to_edit();
|
2013-09-24 20:18:11 -04:00
|
|
|
include( ABSPATH . 'wp-admin/edit-link-form.php' );
|
2003-12-23 16:47:03 -05:00
|
|
|
|
2013-09-24 20:18:11 -04:00
|
|
|
require( ABSPATH . 'wp-admin/admin-footer.php' );
|