| @@ -20,9 +20,8 @@ | ||
| 20 | 20 | add_filter( 'weforms_settings_tabs', [ $this, 'set_default_settings' ], 5 ); |
| 21 | 21 | add_action( 'weforms_settings_tab_content_general', [ $this, 'settings_tab_general' ] ); |
| 22 | 22 | add_action( 'weforms_settings_tab_content_recaptcha', [ $this, 'settings_tab_recaptcha' ] ); |
| 23 | 23 | add_action( 'weforms_settings_tab_content_secure-database', [ $this, 'settings_tab_secure_database' ] ); |
| 24 | - add_action( 'weforms_settings_tab_content_humanpresence', [ $this, 'settings_tab_humanpresence' ] ); | |
| 25 | 24 | add_action( 'weforms_settings_tab_content_privacy', [ $this, 'settings_tab_privacy' ] ); |
| 26 | 25 | } |
| 27 | 26 | |
| 28 | 27 | /** |
| @@ -169,19 +168,11 @@ | ||
| 169 | 168 | * |
| 170 | 169 | * @return void |
| 171 | 170 | */ |
| 172 | 171 | public function export_form_entries() { |
| 173 | - if ( ! current_user_can( 'administrator' ) ) { | |
| 174 | - wp_die( esc_html__( 'You do not have permission to export entries', 'weforms' ) ); | |
| 175 | - } | |
| 176 | - | |
| 177 | - if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'weforms-export-entries' ) ) { | |
| 178 | - wp_die( esc_html__( 'Invalid nonce', 'weforms' ) ); | |
| 179 | - } | |
| 180 | - | |
| 181 | 172 | $form_id = isset( $_REQUEST['selected_forms'] ) ? absint( $_REQUEST['selected_forms'] ) : 0; |
| 182 | 173 | |
| 183 | - if ( ! $form_id ) { | |
| 174 | + if ( !$form_id ) { | |
| 184 | 175 | return; |
| 185 | 176 | } |
| 186 | 177 | |
| 187 | 178 | $entry_array = []; |
| @@ -345,13 +336,8 @@ | ||
| 345 | 336 | 'label' => __( 'Secure Database', 'weforms' ), |
| 346 | 337 | 'icon' => WEFORMS_ASSET_URI . '/images/integrations/secure-database.png', |
| 347 | 338 | ]; |
| 348 | 339 | |
| 349 | - $tabs['humanpresence'] = [ | |
| 350 | - 'label' => __( 'Human Presence', 'weforms' ), | |
| 351 | - 'icon' => WEFORMS_ASSET_URI . '/images/integrations/hp-shield.svg', | |
| 352 | - ]; | |
| 353 | - | |
| 354 | 340 | /* TODO: Refactor this block when more options are added in privacy settings*/ |
| 355 | 341 | if ( class_exists( 'WeForms_Pro' ) ) { |
| 356 | 342 | $tabs['privacy'] = [ |
| 357 | 343 | 'label' => __( 'Privacy', 'weforms' ), |
| @@ -391,18 +377,8 @@ | ||
| 391 | 377 | * @return void |
| 392 | 378 | */ |
| 393 | 379 | public function settings_tab_secure_database( $tab ) { |
| 394 | 380 | include __DIR__ . '/views/weforms-settings-secure-database.php'; |
| 395 | - } | |
| 396 | - /** | |
| 397 | - * Human Presence tab content | |
| 398 | - * | |
| 399 | - * @param array $tab | |
| 400 | - * | |
| 401 | - * @return void | |
| 402 | - */ | |
| 403 | - public function settings_tab_humanpresence( $tab ) { | |
| 404 | - include __DIR__ . '/views/weforms-settings-humanpresence.php'; | |
| 405 | 381 | } |
| 406 | 382 | /** |
| 407 | 383 | * Privacy tab content |
| 408 | 384 | * |