mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-29 08:32:23 +08:00
more static typing on advanced options page
This commit is contained in:
parent
21cd98024c
commit
f38c845be1
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
|||
|
||||
use WP2Static\OptionRenderer;
|
||||
|
||||
/**
|
||||
* @var array<string, mixed> $options
|
||||
*/
|
||||
$options = $view['coreOptions'];
|
||||
|
||||
$row = function( $name ) use ( $options ) {
|
||||
|
@ -48,7 +51,7 @@ $row = function( $name ) use ( $options ) {
|
|||
|
||||
<p/>
|
||||
|
||||
<?php wp_nonce_field( $view['nonce_action'] ); ?>
|
||||
<?php wp_nonce_field( strval( $view['nonce_action'] ) ); ?>
|
||||
<input name="action" type="hidden" value="wp2static_ui_save_advanced_options" />
|
||||
|
||||
<button class="button btn-primary" type="submit">Save options</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue