CoreFiles by mySites.guru
link-add.php32 lines, 742 bytes, from wordpress-6.3.zip
Raw History Compare with 6.2.15
md5
1cccd50a508355e8e8ce2d0d6028996c
sha1
1ae304b70dc7ca076e037fd8c21ee52e00b6cd09
sha256
714050e0ba00fd788599122a8a4a0cb5a3e7b7ebd320cae868db31752b700e9a
<?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.' ) );
}

// Used in the HTML title tag.
$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 187 releases, WordPress 5.9-beta1 to 6.5.14. See them all, or every version of this file.