Skip to content

Commit

Permalink
chore: remove unnecessary vars
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Dec 12, 2024
1 parent 9eb2e82 commit 53de4f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions includes/class-content-distribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static function get_reserved_post_meta_keys() {
$reserved_keys = apply_filters( 'newspack_network_content_distribution_reserved_post_meta_keys', $reserved_keys );

// Always preserve content distribution post meta.
$reserved_keys = array_merge(
return array_merge(
$reserved_keys,
[
Outgoing_Post::DISTRIBUTED_POST_META,
Expand All @@ -142,8 +142,6 @@ public static function get_reserved_post_meta_keys() {
Incoming_Post::ATTACHMENT_META,
]
);

return $reserved_keys;
}

/**
Expand Down
4 changes: 1 addition & 3 deletions includes/content-distribution/class-outgoing-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ function( $v ) {
* @param array $meta The post meta data.
* @param WP_Post $post The post object.
*/
$meta = apply_filters( 'newspack_network_distributed_post_meta', $meta, $this->post );

return $meta;
return apply_filters( 'newspack_network_distributed_post_meta', $meta, $this->post );
}
}

0 comments on commit 53de4f3

Please sign in to comment.