Skip to content

Commit 3d4a563

Browse files
authored
Check page id instead
1 parent d89a971 commit 3d4a563

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

companion.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
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;
29+
if ( function_exists( 'get_current_screen' ) ) {
30+
$screen = get_current_screen();
31+
if ( $screen->id === 'post' ) {
32+
return;
33+
}
3134
}
3235
$password_option_key = 'jurassic_ninja_admin_password';
3336
$sysuser_option_key = 'jurassic_ninja_sysuser';

0 commit comments

Comments
 (0)