fix rebuild database form
This commit is contained in:
parent
c54de66315
commit
99ab15273a
@ -183,7 +183,8 @@ class ViewMainTest extends PHPUnit_Framework_TestCase {
|
||||
'//tt[contains(text(), "the_project_wonderful_ad(123)")]' => true,
|
||||
'//tt[contains(text(), "PW(123)")]' => true,
|
||||
'//tt[contains(text(), "PW\(123\)")]' => true,
|
||||
'//form[@id="allow-destroy-handler"]/input[@name="_pw_nonce" and @value="345"]' => true
|
||||
'//form[@id="allow-destroy-handler"]/input[@name="_pw_nonce" and @value="345"]' => true,
|
||||
'//form[@id="allow-destroy-handler"]/input[@name="_pw_action" and @value="rebuild-database"]' => true
|
||||
) as $xpath => $value) {
|
||||
$this->assertTrue(_xpath_test($xml, $xpath, $value), $xpath);
|
||||
}
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
<form id="allow-destroy-handler" action="" method="post">
|
||||
<input type="hidden" name="_pw_nonce" value="<?php echo $this->_pw_nonce ?>" />
|
||||
<input type="hidden" name="action" value="rebuild-database" />
|
||||
<input type="hidden" name="_pw_action" value="rebuild-database" />
|
||||
<input type="submit" value="<?php _e('Destroy and Rebuild Database', 'plugin-wonderful') ?>" class="button" />
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user