From 6063ae1077e77fa99b3429de24dc4aca98e61cae Mon Sep 17 00:00:00 2001 From: root <root@rivolta.investici.org> Date: Sun, 6 Mar 2011 17:32:24 +0000 Subject: [PATCH] New global plugin: update_siteurl.php to fix themes POSTing to http when over https --- wp-content/mu-plugins/update_siteurl.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 wp-content/mu-plugins/update_siteurl.php diff --git a/wp-content/mu-plugins/update_siteurl.php b/wp-content/mu-plugins/update_siteurl.php new file mode 100644 index 000000000..8a2d50906 --- /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(); + +?> -- GitLab