From 3a4bb527ac218ad6a194d70fe743c7076542b490 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 19 Nov 2022 13:58:07 +0100 Subject: [PATCH] Remove filter for wpseo_whitelist_permalink_vars The filter is no longer used by the plugin --- public-post-preview.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/public-post-preview.php b/public-post-preview.php index b061fc3..b7f9aba 100644 --- a/public-post-preview.php +++ b/public-post-preview.php @@ -57,8 +57,6 @@ public static function init() { if ( ! is_admin() ) { add_action( 'pre_get_posts', array( __CLASS__, 'show_public_preview' ) ); add_filter( 'query_vars', array( __CLASS__, 'add_query_var' ) ); - // Add the query var to WordPress SEO by Yoast whitelist. - add_filter( 'wpseo_whitelist_permalink_vars', array( __CLASS__, 'add_query_var' ) ); add_filter( 'user_switching_redirect_to', array( __CLASS__, 'user_switching_redirect_to' ), 10, 4 ); } else { add_action( 'post_submitbox_misc_actions', array( __CLASS__, 'post_submitbox_misc_actions' ) );