CoreFiles by mySites.guru
link-add.php29 lines, 700 bytes, from wordpress-5.0.21.zip
Raw History Compare with 5.0.20
md5
a0ee0eaab7c6f32171b0215409caa2fc
sha1
9318e16760efb7c4a1ebb62b80727411228f9967
sha256
311d6a1e4b55acdfca2caff83a8b98a6613d39ed30844a5fdbde91ff84edeb6f
<?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(__('Sorry, you are not allowed 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 231 releases, WordPress 4.6-beta1 to 5.0.31. See them all, or every version of this file.