2003-12-23 22:47:03 +01:00
|
|
|
<?php
|
2008-08-14 08:30:38 +02:00
|
|
|
/**
|
2011-04-28 17:24:49 +02:00
|
|
|
* Add Link Administration Screen.
|
2008-08-14 08:30:38 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Administration Bootstrap */
|
2013-09-25 02:18:11 +02:00
|
|
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
2003-12-23 22:47:03 +01:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
if ( ! current_user_can( 'manage_links' ) ) {
|
|
|
|
wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
|
|
|
|
}
|
2009-08-02 04:23:54 +02:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
$title = __( 'Add New Link' );
|
2008-09-25 21:33:53 +02:00
|
|
|
$parent_file = 'link-manager.php';
|
2005-01-06 10:46:52 +01:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
|
2004-04-28 07:34:50 +02:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
wp_enqueue_script( 'link' );
|
|
|
|
wp_enqueue_script( 'xfn' );
|
2008-01-31 21:04:54 +01:00
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
if ( wp_is_mobile() ) {
|
2012-04-11 04:20:51 +02:00
|
|
|
wp_enqueue_script( 'jquery-touch-punch' );
|
2017-12-01 00:11:00 +01:00
|
|
|
}
|
2012-04-11 04:20:51 +02:00
|
|
|
|
2008-02-25 07:30:38 +01:00
|
|
|
$link = get_default_link_to_edit();
|
2013-09-25 02:18:11 +02:00
|
|
|
include( ABSPATH . 'wp-admin/edit-link-form.php' );
|
2003-12-23 22:47:03 +01:00
|
|
|
|
2013-09-25 02:18:11 +02:00
|
|
|
require( ABSPATH . 'wp-admin/admin-footer.php' );
|