Skip to content

Commit

Permalink
Merge pull request #154 from Yoast/JRF/CS/minor-clean-up
Browse files Browse the repository at this point in the history
CS: minor clean up after merges
  • Loading branch information
jrfnl authored Mar 25, 2021
2 parents 97eab6b + 39af4de commit ecf3758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/class-column.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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"';
}
Expand Down

0 comments on commit ecf3758

Please sign in to comment.