public function setLoad( $libraries ) {
		$load = false;
		$product = false;
		foreach( $libraries as $name => $version ) {

			// Check for branch versions normalized (dev/master).
			if ( strpos( $version, 'dev' ) !== false ) {
				$load = $version;
				$product = $name;
				break;
			}

			// Check for highest loaded version.
			if ( version_compare( $load, $version ) === -1 ) {
				$load = $version;
				$product = $name;
			}
		}

		return $this->load = ( object ) array( 'product' => $product, 'version' => $load );
	}
public function setLoad( $libraries ) {
		$load = false;
		$product = false;
		foreach( $libraries as $name => $version ) {

			// Check for branch versions normalized (dev/master).
			if ( strpos( $version, 'dev' ) !== false ) {
				$load = $version;
				$product = $name;
				break;
			}

			// Check for highest loaded version.
			if ( version_compare( $load, $version ) === -1 ) {
				$load = $version;
				$product = $name;
			}
		}

		return $this->load = ( object ) array( 'product' => $product, 'version' => $load );
	}
public function setLoad ( $ libraries ) { $ load = false ; $ product = false ; foreach ( $ libraries as $ name => $ version ) { // Check for branch versions normalized (dev/master). if ( strpos ( $ version , 'dev' ) !== false ) { $ load = $ version ; $ product = $ name ; break ; } // Check for highest loaded version. if ( version_compare ( $ load , $ version ) === - 1 ) { $ load = $ version ; $ product = $ name ; } } return $ this -> load = ( object ) array ( 'product' => $ product , 'version' => $ load ) ; }
Sets the product and version of library to load.

This check will loop through the available libraries and load the
highest version found.  If an active plugin or theme contains a
git branch instead of a tagged version, then that library will be
loaded instead.

@since  1.0.0

@param  array  $libraries Registered library versions from options.

@return object $load      The product and version to load.
Sets the product and version of library to load .