Advertisement
Guest User

Wordpress HTTPs 3.3.6 Multisite network URL fix

a guest
Oct 7th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Fix/Tweak (Wordpress HTTPs)
  4. Plugin URI:
  5. Description: Fix a problem were creating new site while the plugin is active break the links in the network admin pannel
  6. Author: Fred Potvin
  7. Version: 3.3.6
  8. Author URI: http://akeif.me/
  9. Docs:
  10.     http://wordpress.org/support/topic/some-links-in-mu-network-still-broken
  11. */
  12.  
  13. function wphttps_test($value, $id) {
  14.     $home = get_blog_option($id, 'home');
  15.     $ssl_home = str_replace('http://','https://',$home);
  16.     return $ssl_home.'/';
  17. }
  18.  
  19. add_action( 'blog_option_wordpress-https_ssl_host', 'wphttps_test', 0, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement