CoreFiles by mySites.guru
link-add.php29 lines, 712 bytes, from wordpress-4.1.21.zip
Raw History Compare with 4.1.20
md5
759747ef8d44c52fadcfa5c457f3f283
sha1
b452f87fbb49315c39a8b06c3bdef27b701e6417
sha256
9e3653da4601dfe6489ec9a2f3d3a00d42bdb94b436c7920c099a4474863ed1d
<?php
/**
 * Add Link Administration Screen.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Load WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );

if ( ! current_user_can('manage_links') )
	wp_die(__('You do not have sufficient permissions to add links to this site.'));

$title = __('Add New Link');
$parent_file = 'link-manager.php';

wp_reset_vars( array('action', 'cat_id', 'link_id' ) );

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' );

The same content is in 406 releases, WordPress 3.7-beta1 to 4.5.33. See them all, or every version of this file.