Skip to content

Commit d89a971

Browse files
committed
Do not show admin notice in Gutenberg page
1 parent 0863dc6 commit d89a971

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

companion.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
add_action( 'init', 'companion_add_jetpack_constants_option_page' );
2727

2828
function companion_admin_notices() {
29+
if ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
30+
return;
31+
}
2932
$password_option_key = 'jurassic_ninja_admin_password';
3033
$sysuser_option_key = 'jurassic_ninja_sysuser';
3134
$admin_password = is_multisite() ? get_blog_option( 1, $password_option_key ) : get_option( $password_option_key );

0 commit comments

Comments
 (0)