mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
afc92801a1
commit
251dcee995
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user