| @@ -52,10 +52,8 @@ | ||
| 52 | 52 | |
| 53 | 53 | if ( false === get_option( 'frm_first_activation' ) ) { |
| 54 | 54 | update_option( 'frm_first_activation', time(), false ); |
| 55 | 55 | } |
| 56 | - | |
| 57 | - $this->update_settings_for_new_install(); | |
| 58 | 56 | } |
| 59 | 57 | }//end if |
| 60 | 58 | |
| 61 | 59 | do_action( 'frm_after_install' ); |
| @@ -71,20 +69,8 @@ | ||
| 71 | 69 | } |
| 72 | 70 | } |
| 73 | 71 | |
| 74 | 72 | /** |
| 75 | - * Updates some settings for new installs. | |
| 76 | - * | |
| 77 | - * @since 6.23 | |
| 78 | - */ | |
| 79 | - private function update_settings_for_new_install() { | |
| 80 | - $settings = FrmAppHelper::get_settings(); | |
| 81 | - | |
| 82 | - $settings->denylist_check = 1; | |
| 83 | - $settings->store(); | |
| 84 | - } | |
| 85 | - | |
| 86 | - /** | |
| 87 | 73 | * If we fail to create the database tables, add an inbox notice. |
| 88 | 74 | * This informs the user that they need to correct the issue and try again. |
| 89 | 75 | * |
| 90 | 76 | * @since 6.19 |
| @@ -324,9 +310,9 @@ | ||
| 324 | 310 | // bail if we don't know the previous version |
| 325 | 311 | return; |
| 326 | 312 | } |
| 327 | 313 | |
| 328 | - $migrations = array( 16, 11, 16, 17, 23, 25, 86, 90, 97, 98, 101, 104 ); | |
| 314 | + $migrations = array( 16, 11, 16, 17, 23, 25, 86, 90, 97, 98, 101 ); | |
| 329 | 315 | foreach ( $migrations as $migration ) { |
| 330 | 316 | if ( FrmAppHelper::$db_version >= $migration && $old_db_version < $migration ) { |
| 331 | 317 | $function_name = 'migrate_to_' . $migration; |
| 332 | 318 | $this->$function_name(); |
| @@ -392,26 +378,8 @@ | ||
| 392 | 378 | |
| 393 | 379 | do_action( 'frm_after_uninstall' ); |
| 394 | 380 | |
| 395 | 381 | return true; |
| 396 | - } | |
| 397 | - | |
| 398 | - /** | |
| 399 | - * In older versions of Lite, it's possible we've saved the wrong location ID. | |
| 400 | - * So force it to get valid values again. | |
| 401 | - * | |
| 402 | - * @since 6.25 | |
| 403 | - * | |
| 404 | - * @return void | |
| 405 | - */ | |
| 406 | - private function migrate_to_104() { | |
| 407 | - if ( FrmSquareLiteConnectHelper::get_merchant_id( 'test' ) ) { | |
| 408 | - FrmSquareLiteConnectHelper::get_location_id( true, 'test' ); | |
| 409 | - } | |
| 410 | - | |
| 411 | - if ( FrmSquareLiteConnectHelper::get_merchant_id( 'live' ) ) { | |
| 412 | - FrmSquareLiteConnectHelper::get_location_id( true, 'live' ); | |
| 413 | - } | |
| 414 | 382 | } |
| 415 | 383 | |
| 416 | 384 | /** |
| 417 | 385 | * Disables summary email for multisite (not the main site) if recipient setting isn't changed. |