← All changes
|
classes/controllers/FrmOnboardingWizardController.php
+7
-2
6.32
→
trunk
View file →
| @@ -130,10 +130,15 @@ | ||
| 130 | 130 | if ( self::has_onboarding_been_skipped() ) { |
| 131 | 131 | add_filter( 'option_frm_inbox', self::class . '::add_wizard_to_floating_links' ); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - // Load page if admin page is Onboarding Wizard. | |
| 135 | - self::maybe_load_page(); | |
| 134 | + /** | |
| 135 | + * Load page if admin page is Onboarding Wizard. | |
| 136 | + * This waits for init because it reads the inbox option, and the filter above translates | |
| 137 | + * when it does. Translating before the text domain is loaded triggers a | |
| 138 | + * _load_textdomain_just_in_time notice in WordPress 6.7+. | |
| 139 | + */ | |
| 140 | + add_action( 'init', self::class . '::maybe_load_page' ); | |
| 136 | 141 | } |
| 137 | 142 | |
| 138 | 143 | /** |
| 139 | 144 | * Performs a safe redirect to the welcome screen when the plugin is activated. |