Commit d82136d4 authored by root's avatar root Committed by agata

New global plugin: update_siteurl.php to fix themes POSTing to http when over https

parent efce71ab
<?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();
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment