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

30 lines
712 B
PHP
Raw Normal View History

<?php
/**
* Add Link Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/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
wp_reset_vars( array('action', 'cat_id', 'link_id' ) );
2004-04-28 05:34:50 +00:00
wp_enqueue_script('link');
wp_enqueue_script('xfn');
if ( wp_is_mobile() )
wp_enqueue_script( 'jquery-touch-punch' );
$link = get_default_link_to_edit();
include( ABSPATH . 'wp-admin/edit-link-form.php' );
require( ABSPATH . 'wp-admin/admin-footer.php' );