WordPress.org

Forums

A fix so it works on WPMU (2 posts)

  1. bryancwilson
    Member
    Posted 7 years ago #

    I modified the code of my VVQ install to get it to work on WPMU. Viper's site is down and don't know how to contribute the code, so til then:

    In vipers-video-quicktags.php look for this code around Line 110 or so:
    // Are we running at least WordPress 2.1?

    change :
    $this->twopointoneplus = version_compare($wp_version, '2.1.0', '>=');

    to :

    // Are we running in WPMU?
           if ( strpos($wp_version , "mu") == false ) {
             $this->twopointoneplus = version_compare($wp_version, '2.1.0', '>=');
           } else  {
             $version_split = split("-", $wp_version);
             $wpmu_wp_version = $version_split[count($version_split)-1];
          		$this->twopointoneplus = version_compare($wpmu_wp_version, '2.1.0', '>=');
           }
  2. Thanks. I'll add this to the long list of changes I need to make when I stop being a lazy SOB. >_<

Topic Closed

This topic has been closed to new replies.

About this Topic