@@ -37,7 +37,9 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function init() |
| 39 | 39 | { |
| 40 | - if( $this->app->config->disable_config )return; |
|
| 40 | + if( $this->app->config->disable_config ) { |
|
| 41 | + return; |
|
| 42 | + } |
|
| 41 | 43 | |
| 42 | 44 | add_action( 'admin_menu', [$this, 'registerPage'] ); |
| 43 | 45 | add_action( 'admin_menu', [$this, 'registerSetting'] ); |
@@ -107,7 +109,9 @@ discard block |
||
| 107 | 109 | { |
| 108 | 110 | if( filter_input( INPUT_GET, 'page' ) !== $this->app->id |
| 109 | 111 | || filter_input( INPUT_GET, 'action' ) !== 'reset' |
| 110 | - )return; |
|
| 112 | + ) { |
|
| 113 | + return; |
|
| 114 | + } |
|
| 111 | 115 | if( wp_verify_nonce( filter_input( INPUT_GET, '_wpnonce' ), static::id() )) { |
| 112 | 116 | delete_option( static::id() ); |
| 113 | 117 | $this->app->make( ConfigManager::class )->compile( true ); |