Skip to content

feat: fix for duplicate post plugin#48

Merged
ictbeheer merged 5 commits intomainfrom
feat/duplicate-post
Feb 6, 2026
Merged

feat: fix for duplicate post plugin#48
ictbeheer merged 5 commits intomainfrom
feat/duplicate-post

Conversation

@ictbeheer
Copy link
Member

Hopelijk tijdelijke fix totdat Yoast deze bug opgelost heeft: Yoast/duplicate-post#404


$postID = intval($_GET['post']);
$post = get_post($postID);
if (null === $post || ! $post instanceof \WP_Post) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit is voldoende:

if (! $post instanceof \WP_Post) {

@ictbeheer ictbeheer merged commit 4d931e4 into main Feb 6, 2026
2 checks passed
@ictbeheer ictbeheer deleted the feat/duplicate-post branch February 6, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants