Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Wordpress HTTPs 3.3.6 Multisite network URL fix

By: a guest on Oct 7th, 2013  |  syntax: PHP  |  size: 0.57 KB  |  hits: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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 );