Skip to content

Commit

Permalink
Merge pull request #21 from Automattic/remove/admin-notice-in-gutenbe…
Browse files Browse the repository at this point in the history
…rg-page

Do not show admin notice in Gutenberg page
  • Loading branch information
oskosk authored Nov 29, 2018
2 parents e47fe01 + 3d4a563 commit 14d77cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions companion.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
add_action( 'init', 'companion_add_jetpack_constants_option_page' );

function companion_admin_notices() {
if ( function_exists( 'get_current_screen' ) ) {
$screen = get_current_screen();
if ( $screen->id === 'post' ) {
return;
}
}
$password_option_key = 'jurassic_ninja_admin_password';
$sysuser_option_key = 'jurassic_ninja_sysuser';
$admin_password = is_multisite() ? get_blog_option( 1, $password_option_key ) : get_option( $password_option_key );
Expand Down

0 comments on commit 14d77cb

Please sign in to comment.