Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Fix/Tweak (Wordpress HTTPs)
- Plugin URI:
- Description: Fix a problem were creating new site while the plugin is active break the links in the network admin pannel
- Author: Fred Potvin
- Version: 3.3.6
- Author URI: http://akeif.me/
- Docs:
- http://wordpress.org/support/topic/some-links-in-mu-network-still-broken
- */
- function wphttps_test($value, $id) {
- $home = get_blog_option($id, 'home');
- $ssl_home = str_replace('http://','https://',$home);
- return $ssl_home.'/';
- }
- add_action( 'blog_option_wordpress-https_ssl_host', 'wphttps_test', 0, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement