CoreFiles by mySites.guru
link-add.php31 lines, 711 bytes, from wordpress-5.4.21.zip
Raw History Compare with 5.4.20
md5
45f221276c6a50e5c95e046b497feae5
sha1
800915e51c8917b289888a40250303cf25ae7fff
sha256
6fb4e8db07f02b10c51a5e3fcecb029ee6ee557b5d3ae43b907614b4680c961f
<?php
/**
 * Add Link Administration Screen.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Load WordPress Administration Bootstrap */
require_once __DIR__ . '/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();
require ABSPATH . 'wp-admin/edit-link-form.php';

require_once ABSPATH . 'wp-admin/admin-footer.php';

The same content is in 165 releases, WordPress 5.4-beta1 to 5.8.19. See them all, or every version of this file.