Skip to content

Instantly share code, notes, and snippets.

@bigdawggi
Created April 21, 2015 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigdawggi/5360aebfdcad25c995e9 to your computer and use it in GitHub Desktop.
Save bigdawggi/5360aebfdcad25c995e9 to your computer and use it in GitHub Desktop.
WPSEO Stop annoying redirect on update
diff --git a/wp-content/plugins/wordpress-seo/index.php b/wp-content/plugins/wordpress-seo/index.php
index 12c197f..abebf2a 100644
--- a/wp-content/plugins/wordpress-seo/index.php
+++ b/wp-content/plugins/wordpress-seo/index.php
@@ -1,2 +1,9 @@
<?php
-//Nothing to see here
\ No newline at end of file
+//Nothing to see here
+
+add_filter( 'option_wpseo', function($val){
+ if ( is_array( $val ) ) {
+ $val['seen_about'] = true;
+ }
+ return $val;
+});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment