From 39af4de20cde5217a2bbf0e3c3e2cfad54faf9e4 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 23 Mar 2021 03:25:28 +0100 Subject: [PATCH] CS: minor clean up after merges --- src/ui/class-column.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/class-column.php b/src/ui/class-column.php index 0251721f3..a61806907 100644 --- a/src/ui/class-column.php +++ b/src/ui/class-column.php @@ -2,6 +2,7 @@ namespace Yoast\WP\Duplicate_Post\UI; +use WP_Post; use Yoast\WP\Duplicate_Post\Permissions_Helper; use Yoast\WP\Duplicate_Post\Utils; @@ -86,7 +87,7 @@ public function show_original_item( $column_name, $post_id ) { $post = \get_post( $post_id ); $data_attr = ''; - if ( $post instanceof \WP_Post + if ( $post instanceof WP_Post && $this->permissions_helper->is_rewrite_and_republish_copy( $post ) ) { $data_attr = ' data-copy-is-for-rewrite-and-republish="1"'; }