| @@ -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; |
| @@ -53,12 +58,8 @@ | ||
| 53 | 58 | use SRFM\Inc\Single_Form_Settings\Form_Settings_Api; |
| 54 | 59 | use SRFM\Inc\Smart_Tags; |
| 55 | 60 | use SRFM\Inc\Updater; |
| 56 | 61 | |
| 57 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 58 | - exit; // Exit if accessed directly. | |
| 59 | -} | |
| 60 | - | |
| 61 | 62 | /** |
| 62 | 63 | * Plugin_Loader |
| 63 | 64 | * |
| 64 | 65 | * @since 0.0.1 |
| @@ -282,8 +283,9 @@ | ||
| 282 | 283 | // Look in local /wp-content/plugins/sureforms/languages/ folder. |
| 283 | 284 | load_textdomain( 'sureforms', $mofile_local ); |
| 284 | 285 | } else { |
| 285 | 286 | // Load the default language files. |
| 287 | + // phpcs:ignore PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound -- Fallback when no global/local .mo override is present. | |
| 286 | 288 | load_plugin_textdomain( 'sureforms', false, $lang_dir ); |
| 287 | 289 | } |
| 288 | 290 | } |
| 289 | 291 | |
| @@ -331,8 +333,9 @@ | ||
| 331 | 333 | // Initializing Compatibilities. |
| 332 | 334 | Astra::get_instance(); |
| 333 | 335 | Multilingual_Manager::get_instance(); |
| 334 | 336 | String_Collector::get_instance(); |
| 337 | + String_Backfill::get_instance(); | |
| 335 | 338 | |
| 336 | 339 | /** |
| 337 | 340 | * Load core files necessary for the Spectra block. |
| 338 | 341 | * This method is called in the Spectra block loader to ensure core files are loaded during the 'plugins_loaded' action. |