diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php index 13d59dc981..398bb07386 100644 --- a/src/wp-admin/includes/class-wp-screen.php +++ b/src/wp-admin/includes/class-wp-screen.php @@ -1194,6 +1194,13 @@ final class WP_Screen { * @since 4.4.0 */ public function render_view_mode() { + $screen = get_current_screen(); + + // Currently only enabled for posts lists + if ( 'edit' !== $screen->base ) { + return; + } + /** * Filter the post types that have different view mode options. *