CoreFiles by mySites.guru
link-add.php31 lines, 727 bytes, from wordpress-5.2.21.zip
Raw History Compare with 5.2.20
md5
8c4b18cd3f8fedd630e59b09181ec962
sha1
fa50f57a478be6569c1cd4c96e33bc13008c5d7d
sha256
2f8e92bf3c34139d31bf72b48e5776f8714cee86333463ab146a2bf5dfa5f716
<?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 115 releases, WordPress 5.1-beta1 to 5.3.27. See them all, or every version of this file.