Fix over-aggressive form validation. Props mdawaffe. fixes #6209

git-svn-id: http://svn.automattic.com/wordpress/trunk@7385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-18 19:37:31 +00:00
parent afc92801a1
commit 251dcee995

View File

@ -2,12 +2,12 @@
if ( ! empty($link_id) ) { if ( ! empty($link_id) ) {
$heading = __('Edit Link'); $heading = __('Edit Link');
$submit_text = __('Save Changes'); $submit_text = __('Save Changes');
$form = '<form name="editlink" id="editlink" method="post" action="link.php" class="validate">'; $form = '<form name="editlink" id="editlink" method="post" action="link.php">';
$nonce_action = 'update-bookmark_' . $link_id; $nonce_action = 'update-bookmark_' . $link_id;
} else { } else {
$heading = __('Add Link'); $heading = __('Add Link');
$submit_text = __('Add Link'); $submit_text = __('Add Link');
$form = '<form name="addlink" id="addlink" method="post" action="link.php" class="validate">'; $form = '<form name="addlink" id="addlink" method="post" action="link.php">';
$nonce_action = 'add-bookmark'; $nonce_action = 'add-bookmark';
} }