fix: form return submission exception (#362)

pull/369/head
Seaton Jiang 2021-04-15 10:48:34 +08:00
parent 165cd78c1c
commit 8251b1189b
No known key found for this signature in database
GPG Key ID: C1086BAE716FF138
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ class Options_Framework_Admin {
<div id="optionsframework-metabox" class="metabox-holder">
<div id="optionsframework" class="postbox">
<form action="options.php" method="post">
<form action="options.php" method="post" onkeydown="if(event.keyCode==13){return false;}">
<?php settings_fields( 'optionsframework' ); ?>
<?php Options_Framework_Interface::optionsframework_fields(); /* Settings */ ?>
<div id="optionsframework-submit">

View File

@ -255,7 +255,7 @@ class Options_Framework_Interface
break;
case "sendmail":
$output .= '<input type="submit" name="sendmail" class="button-secondary" value="' . __('测试邮件', 'kratos') . '">';
$output .= '<button name="sendmail" class="button-secondary">' . __('测试邮件', 'kratos') . '</button>';
break;
// Heading for Navigation