| @@ -7,8 +7,12 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | namespace SRFM; |
| 10 | 10 | |
| 11 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 12 | + exit; // Exit if accessed directly. | |
| 13 | +} | |
| 14 | + | |
| 11 | 15 | use SRFM\Admin\Admin; |
| 12 | 16 | use SRFM\Admin\Analytics; |
| 13 | 17 | use SRFM\Admin\Notice_Manager; |
| 14 | 18 | use SRFM\Inc\Abilities\Abilities_Registrar; |
| @@ -22,8 +26,9 @@ | ||
| 22 | 26 | use SRFM\Inc\AI_Form_Builder\Field_Mapping; |
| 23 | 27 | use SRFM\Inc\Background_Process; |
| 24 | 28 | use SRFM\Inc\Blocks\Register; |
| 25 | 29 | use SRFM\Inc\Compatibility\Multilingual\Multilingual_Manager; |
| 30 | +use SRFM\Inc\Compatibility\Multilingual\String_Backfill; | |
| 26 | 31 | use SRFM\Inc\Compatibility\Multilingual\String_Collector; |
| 27 | 32 | use SRFM\Inc\Compatibility\Themes\Astra; |
| 28 | 33 | use SRFM\Inc\Create_New_Form; |
| 29 | 34 | use SRFM\Inc\Database\Register as DatabaseRegister; |
| @@ -31,8 +36,9 @@ | ||
| 31 | 36 | use SRFM\Inc\Events_Scheduler; |
| 32 | 37 | use SRFM\Inc\Export; |
| 33 | 38 | use SRFM\Inc\Form_Restriction; |
| 34 | 39 | use SRFM\Inc\Form_Submit; |
| 40 | +use SRFM\Inc\Form_Views; | |
| 35 | 41 | use SRFM\Inc\Forms_Data; |
| 36 | 42 | use SRFM\Inc\Frontend_Assets; |
| 37 | 43 | use SRFM\Inc\Generate_Form_Markup; |
| 38 | 44 | use SRFM\Inc\Global_Settings\Email_Summary; |
| @@ -53,12 +59,8 @@ | ||
| 53 | 59 | use SRFM\Inc\Single_Form_Settings\Form_Settings_Api; |
| 54 | 60 | use SRFM\Inc\Smart_Tags; |
| 55 | 61 | use SRFM\Inc\Updater; |
| 56 | 62 | |
| 57 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 58 | - exit; // Exit if accessed directly. | |
| 59 | -} | |
| 60 | - | |
| 61 | 63 | /** |
| 62 | 64 | * Plugin_Loader |
| 63 | 65 | * |
| 64 | 66 | * @since 0.0.1 |
| @@ -282,8 +284,9 @@ | ||
| 282 | 284 | // Look in local /wp-content/plugins/sureforms/languages/ folder. |
| 283 | 285 | load_textdomain( 'sureforms', $mofile_local ); |
| 284 | 286 | } else { |
| 285 | 287 | // Load the default language files. |
| 288 | + // phpcs:ignore PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound -- Fallback when no global/local .mo override is present. | |
| 286 | 289 | load_plugin_textdomain( 'sureforms', false, $lang_dir ); |
| 287 | 290 | } |
| 288 | 291 | } |
| 289 | 292 | |
| @@ -302,8 +305,9 @@ | ||
| 302 | 305 | Helper::get_instance(); |
| 303 | 306 | Activator::get_instance(); |
| 304 | 307 | Admin_Ajax::get_instance(); |
| 305 | 308 | Forms_Data::get_instance(); |
| 309 | + Form_Views::get_instance(); | |
| 306 | 310 | Export::get_instance(); |
| 307 | 311 | Smart_Tags::get_instance(); |
| 308 | 312 | Generate_Form_Markup::get_instance(); |
| 309 | 313 | Create_New_Form::get_instance(); |
| @@ -331,8 +335,9 @@ | ||
| 331 | 335 | // Initializing Compatibilities. |
| 332 | 336 | Astra::get_instance(); |
| 333 | 337 | Multilingual_Manager::get_instance(); |
| 334 | 338 | String_Collector::get_instance(); |
| 339 | + String_Backfill::get_instance(); | |
| 335 | 340 | |
| 336 | 341 | /** |
| 337 | 342 | * Load core files necessary for the Spectra block. |
| 338 | 343 | * This method is called in the Spectra block loader to ensure core files are loaded during the 'plugins_loaded' action. |