Skip to content

Commit

Permalink
Remove filter for wpseo_whitelist_permalink_vars
Browse files Browse the repository at this point in the history
The filter is no longer used by the plugin
  • Loading branch information
ocean90 committed Nov 19, 2022
1 parent e142120 commit 3a4bb52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions public-post-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down

0 comments on commit 3a4bb52

Please sign in to comment.