diff --git a/classes/hooks/class-hook-link-related-screen.php b/classes/hooks/class-hook-link-related-screen.php index 051c58b..a9ee25f 100644 --- a/classes/hooks/class-hook-link-related-screen.php +++ b/classes/hooks/class-hook-link-related-screen.php @@ -54,7 +54,7 @@ private function catch_search() { exit; } } - + /** * Check if the current user is allowed to create related posts */ @@ -151,7 +151,7 @@ public function content() { } // Parent - $parent = $_GET['rp4wp_parent']; + $parent = absint( $_GET['rp4wp_parent'] ); // Setup cancel URL $cancel_url = get_admin_url() . "post.php?post={$parent}&action=edit"; @@ -166,7 +166,7 @@ public function content() {

- +

@@ -192,4 +192,4 @@ public function content() {