CoreFiles by mySites.guru
link-add.php30 lines, 722 bytes, from wordpress-2.5.1.zip
Raw History Compare with 2.5
md5
fc8b165d1368294f9045314d01c15187
sha1
ab49b7b3e68c4ab2368a8e072a4cb4e945348fb8
sha256
ab331c5c0c60255a93c02b3d2a302b4f7c437e862e46d9537b41f3fd3521f7a9
<?php
require_once('admin.php');

$title = __('Add Link');
$this_file = 'link-manager.php';
$parent_file = 'post-new.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');
wp_enqueue_script('thickbox');

require('admin-header.php');
?>

<?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>
<div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
<?php endif; ?>

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

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

The same content is in 5 releases, WordPress 2.5-RC1 to 2.5.1. See them all, or every version of this file.