mirror of https://github.com/vtrois/kratos
fix: form return submission exception (#362)
parent
165cd78c1c
commit
8251b1189b
|
@ -174,7 +174,7 @@ class Options_Framework_Admin {
|
||||||
|
|
||||||
<div id="optionsframework-metabox" class="metabox-holder">
|
<div id="optionsframework-metabox" class="metabox-holder">
|
||||||
<div id="optionsframework" class="postbox">
|
<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 settings_fields( 'optionsframework' ); ?>
|
||||||
<?php Options_Framework_Interface::optionsframework_fields(); /* Settings */ ?>
|
<?php Options_Framework_Interface::optionsframework_fields(); /* Settings */ ?>
|
||||||
<div id="optionsframework-submit">
|
<div id="optionsframework-submit">
|
||||||
|
|
|
@ -255,7 +255,7 @@ class Options_Framework_Interface
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "sendmail":
|
case "sendmail":
|
||||||
$output .= '<input type="submit" name="sendmail" class="button-secondary" value="' . __('测试邮件', 'kratos') . '">';
|
$output .= '<button name="sendmail" class="button-secondary">' . __('测试邮件', 'kratos') . '</button>';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Heading for Navigation
|
// Heading for Navigation
|
||||||
|
|
Loading…
Reference in New Issue