Skip to content
Snippets Groups Projects
Commit ccdb4746 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 eff2302a
Branches
No related tags found
1 merge request!3Noblogs 5.4
<?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.
Please register or to comment