Skip to content

Commit 5f0d763

Browse files
authored
Merge pull request #633 from GiuseppeArcifa/fix/PRESS10-12
Fix: prevent global from being null when loading the Onboarding page
2 parents 0e6b28a + fa83849 commit 5f0d763

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

includes/WP_Admin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ public static function enqueue_block_assets() {
155155
* @return void
156156
*/
157157
public static function initialize() {
158+
global $title;
159+
160+
if ( is_null( $title ) ) {
161+
$title = __( 'Onboarding', 'wp-module-onboarding' );
162+
}
163+
158164
if ( ! empty( $_GET['nfd_plugins'] ) && 'true' === sanitize_text_field( $_GET['nfd_plugins'] ) ) {
159165
PluginService::initialize();
160166
}

0 commit comments

Comments
 (0)