diff --git a/wp-content/mu-plugins/update_siteurl.php b/wp-content/mu-plugins/update_siteurl.php new file mode 100644 index 0000000000000000000000000000000000000000..8a2d509067802afbb89e2a8bdee894c732897528 --- /dev/null +++ b/wp-content/mu-plugins/update_siteurl.php @@ -0,0 +1,20 @@ +<?php +/* +Plugin Name: Update the 'siteurl' and 'home' options +Plugin URI: https://noblogs.org +Description: Update the 'siteurl' and 'home' options to site_url(), this is necessary to fix a lot of themes which don't take into account https. See also http://wordpress.org/support/topic/blank-wp-comments-postphp-page-when-commenting-on-numerous-wordpress-blogs +Version: 0.1 +Author: Autistici/Inventati +Author URI: https://noblogs.org/ +*/ + +function update_siteurl() { + + update_option('siteurl',site_url()); + update_option('home',site_url()); + +} + +update_siteurl(); + +?>