| @@ -7,12 +7,8 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | namespace SRFM; |
| 10 | 10 | |
| 11 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 12 | - exit; // Exit if accessed directly. | |
| 13 | -} | |
| 14 | - | |
| 15 | 11 | use SRFM\Admin\Admin; |
| 16 | 12 | use SRFM\Admin\Analytics; |
| 17 | 13 | use SRFM\Admin\Notice_Manager; |
| 18 | 14 | use SRFM\Inc\Abilities\Abilities_Registrar; |
| @@ -25,11 +21,8 @@ | ||
| 25 | 21 | use SRFM\Inc\AI_Form_Builder\AI_Helper; |
| 26 | 22 | use SRFM\Inc\AI_Form_Builder\Field_Mapping; |
| 27 | 23 | use SRFM\Inc\Background_Process; |
| 28 | 24 | use SRFM\Inc\Blocks\Register; |
| 29 | -use SRFM\Inc\Compatibility\Multilingual\Multilingual_Manager; | |
| 30 | -use SRFM\Inc\Compatibility\Multilingual\String_Backfill; | |
| 31 | -use SRFM\Inc\Compatibility\Multilingual\String_Collector; | |
| 32 | 25 | use SRFM\Inc\Compatibility\Themes\Astra; |
| 33 | 26 | use SRFM\Inc\Create_New_Form; |
| 34 | 27 | use SRFM\Inc\Database\Register as DatabaseRegister; |
| 35 | 28 | use SRFM\Inc\Duplicate_Form; |
| @@ -45,11 +38,8 @@ | ||
| 45 | 38 | use SRFM\Inc\Global_Settings\Global_Settings_Defaults; |
| 46 | 39 | use SRFM\Inc\Gutenberg_Hooks; |
| 47 | 40 | use SRFM\Inc\Helper; |
| 48 | 41 | use SRFM\Inc\Learn; |
| 49 | -// region: form-migration — Phase P1 foundation. | |
| 50 | -use SRFM\Inc\Migrator\Bootstrap as Migrator_Bootstrap; | |
| 51 | -// endregion: form-migration. | |
| 52 | 42 | use SRFM\Inc\Onboarding; |
| 53 | 43 | use SRFM\Inc\Page_Builders\Page_Builders; |
| 54 | 44 | use SRFM\Inc\Payments\Payments; |
| 55 | 45 | use SRFM\Inc\Post_Types; |
| @@ -58,8 +48,12 @@ | ||
| 58 | 48 | use SRFM\Inc\Single_Form_Settings\Form_Settings_Api; |
| 59 | 49 | use SRFM\Inc\Smart_Tags; |
| 60 | 50 | use SRFM\Inc\Updater; |
| 61 | 51 | |
| 52 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 53 | + exit; // Exit if accessed directly. | |
| 54 | +} | |
| 55 | + | |
| 62 | 56 | /** |
| 63 | 57 | * Plugin_Loader |
| 64 | 58 | * |
| 65 | 59 | * @since 0.0.1 |
| @@ -283,9 +277,8 @@ | ||
| 283 | 277 | // Look in local /wp-content/plugins/sureforms/languages/ folder. |
| 284 | 278 | load_textdomain( 'sureforms', $mofile_local ); |
| 285 | 279 | } else { |
| 286 | 280 | // Load the default language files. |
| 287 | - // phpcs:ignore PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound -- Fallback when no global/local .mo override is present. | |
| 288 | 281 | load_plugin_textdomain( 'sureforms', false, $lang_dir ); |
| 289 | 282 | } |
| 290 | 283 | } |
| 291 | 284 | |
| @@ -319,11 +312,8 @@ | ||
| 319 | 312 | Field_Mapping::get_instance(); |
| 320 | 313 | Background_Process::get_instance(); |
| 321 | 314 | Page_Builders::get_instance(); |
| 322 | 315 | Rest_Api::get_instance(); |
| 323 | - // region: form-migration — Phase P1 foundation. | |
| 324 | - Migrator_Bootstrap::get_instance(); | |
| 325 | - // endregion: form-migration. | |
| 326 | 316 | AI_Helper::get_instance(); |
| 327 | 317 | AI_Auth::get_instance(); |
| 328 | 318 | Updater::get_instance(); |
| 329 | 319 | Onboarding::get_instance(); |
| @@ -331,11 +321,8 @@ | ||
| 331 | 321 | Form_Restriction::get_instance(); |
| 332 | 322 | Abilities_Registrar::get_instance(); |
| 333 | 323 | // Initializing Compatibilities. |
| 334 | 324 | Astra::get_instance(); |
| 335 | - Multilingual_Manager::get_instance(); | |
| 336 | - String_Collector::get_instance(); | |
| 337 | - String_Backfill::get_instance(); | |
| 338 | 325 | |
| 339 | 326 | /** |
| 340 | 327 | * Load core files necessary for the Spectra block. |
| 341 | 328 | * This method is called in the Spectra block loader to ensure core files are loaded during the 'plugins_loaded' action. |