We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89a971 commit 3d4a563Copy full SHA for 3d4a563
companion.php
@@ -26,8 +26,11 @@
26
add_action( 'init', 'companion_add_jetpack_constants_option_page' );
27
28
function companion_admin_notices() {
29
- if ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
30
- return;
+ if ( function_exists( 'get_current_screen' ) ) {
+ $screen = get_current_screen();
31
+ if ( $screen->id === 'post' ) {
32
+ return;
33
+ }
34
}
35
$password_option_key = 'jurassic_ninja_admin_password';
36
$sysuser_option_key = 'jurassic_ninja_sysuser';
0 commit comments