Skip to content
Snippets Groups Projects
Commit 6063ae10 authored by root's avatar root Committed by agata
Browse files

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

parent 76643e1b
No related branches found
No related tags found
No related merge requests found
<?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();
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment