Skip to content

Commit

Permalink
fix(nav-tabs): do not show native nav tabs in post editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Jan 28, 2025
1 parent 60b117b commit b6f0324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wizards/class-newsletters-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ private function get_screen_slug() {
if ( 'admin.php' === $pagenow && isset( $this->admin_screens[ $sanitized_page ] ) ) {
// admin page screen: admin.php?page={page} .
$screen_slug = $sanitized_page;
} elseif ( 'edit.php' === $pagenow || 'post-new.php' === $pagenow || 'post.php' === $pagenow ) {
} elseif ( 'edit.php' === $pagenow ) {
if ( ! $sanitized_post_type ) {
$sanitized_post_type = get_post_type( $sanitized_post_id );
}
Expand Down

0 comments on commit b6f0324

Please sign in to comment.