CoreFiles by mySites.guru
link-add.php30 lines, 746 bytes, from wordpress-3.1.3.zip
Raw History Compare with 3.1.2
md5
eb0921d1be92f3ee2cf67c0b6ace5397
sha1
0ae9f0f5e59e7068588f0b0e15a59794a8319e5a
sha256
b2319d23a33185dba6a39541b4fc41679e82fab24663382d91841dad10c324bb
<?php
/**
 * Add Link Administration Panel.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** Load WordPress Administration Bootstrap */
require_once('./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', 'linkurl', 'name', 'image',
	'description', 'visible', 'target', 'category', 'link_id',
	'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
	'notes', 'linkcheck[]'));

wp_enqueue_script('link');
wp_enqueue_script('xfn');

$link = get_default_link_to_edit();
include('./edit-link-form.php');

require('./admin-footer.php');
?>

The same content is in 23 releases, WordPress 3.0-beta2 to 3.1.4. See them all, or every version of this file.