Only hide nux notice on new post pages

This commit is contained in:
Tiago Noronha 2018-04-03 13:08:37 +01:00
parent c163f8a3af
commit 08bc9ef191

View file

@ -69,7 +69,7 @@ if ( ! class_exists( 'Storefront_NUX_Admin' ) ) :
}
// Coming from the WooCommerce Wizard?
if ( wp_get_referer() && 'index.php?page=wc-setup&step=next_steps' === basename( wp_get_referer() ) ) {
if ( wp_get_referer() && 'index.php?page=wc-setup&step=next_steps' === basename( wp_get_referer() ) && 'post-new.php' === $pagenow ) {
return;
}
?>