Created
April 21, 2015 23:11
-
-
Save bigdawggi/5360aebfdcad25c995e9 to your computer and use it in GitHub Desktop.
WPSEO Stop annoying redirect on update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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