public function multisite_branch_switcher( $theme_key, $theme ) {
		if ( empty( static::$options['branch_switch'] ) ) {
			return false;
		}

		$enclosure         = $this->update_row_enclosure( $theme_key, 'theme', true );
		$id                = $theme_key . '-id';
		$branches          = isset( $this->config[ $theme_key ]->branches )
			? $this->config[ $theme_key ]->branches
			: null;
		$nonced_update_url = wp_nonce_url(
			$this->get_update_url( 'theme', 'upgrade-theme', $theme_key ),
			'upgrade-theme_' . $theme_key
		);

		// Get current branch.
		$repo   = $this->config[ $theme_key ];
		$branch = Singleton::get_instance( 'Branch', $this )->get_current_branch( $repo );

		$branch_switch_data                      = [];
		$branch_switch_data['slug']              = $theme_key;
		$branch_switch_data['nonced_update_url'] = $nonced_update_url;
		$branch_switch_data['id']                = $id;
		$branch_switch_data['branch']            = $branch;
		$branch_switch_data['branches']          = $branches;

		/*
		 * Create after_theme_row_
		 */
		echo $enclosure['open'];
		$this->make_branch_switch_row( $branch_switch_data );
		echo $enclosure['close'];

		return true;
	}
public function multisite_branch_switcher( $theme_key, $theme ) {
		if ( empty( static::$options['branch_switch'] ) ) {
			return false;
		}

		$enclosure         = $this->update_row_enclosure( $theme_key, 'theme', true );
		$id                = $theme_key . '-id';
		$branches          = isset( $this->config[ $theme_key ]->branches )
			? $this->config[ $theme_key ]->branches
			: null;
		$nonced_update_url = wp_nonce_url(
			$this->get_update_url( 'theme', 'upgrade-theme', $theme_key ),
			'upgrade-theme_' . $theme_key
		);

		// Get current branch.
		$repo   = $this->config[ $theme_key ];
		$branch = Singleton::get_instance( 'Branch', $this )->get_current_branch( $repo );

		$branch_switch_data                      = [];
		$branch_switch_data['slug']              = $theme_key;
		$branch_switch_data['nonced_update_url'] = $nonced_update_url;
		$branch_switch_data['id']                = $id;
		$branch_switch_data['branch']            = $branch;
		$branch_switch_data['branches']          = $branches;

		/*
		 * Create after_theme_row_
		 */
		echo $enclosure['open'];
		$this->make_branch_switch_row( $branch_switch_data );
		echo $enclosure['close'];

		return true;
	}
public function multisite_branch_switcher ( $ theme_key , $ theme ) { if ( empty ( static :: $ options [ 'branch_switch' ] ) ) { return false ; } $ enclosure = $ this -> update_row_enclosure ( $ theme_key , 'theme' , true ) ; $ id = $ theme_key . '-id' ; $ branches = isset ( $ this -> config [ $ theme_key ] -> branches ) ? $ this -> config [ $ theme_key ] -> branches : null ; $ nonced_update_url = wp_nonce_url ( $ this -> get_update_url ( 'theme' , 'upgrade-theme' , $ theme_key ) , 'upgrade-theme_' . $ theme_key ) ; // Get current branch. $ repo = $ this -> config [ $ theme_key ] ; $ branch = Singleton :: get_instance ( 'Branch' , $ this ) -> get_current_branch ( $ repo ) ; $ branch_switch_data = [ ] ; $ branch_switch_data [ 'slug' ] = $ theme_key ; $ branch_switch_data [ 'nonced_update_url' ] = $ nonced_update_url ; $ branch_switch_data [ 'id' ] = $ id ; $ branch_switch_data [ 'branch' ] = $ branch ; $ branch_switch_data [ 'branches' ] = $ branches ; /*
		 * Create after_theme_row_
		 */ echo $ enclosure [ 'open' ] ; $ this -> make_branch_switch_row ( $ branch_switch_data ) ; echo $ enclosure [ 'close' ] ; return true ; }
Create branch switcher row for multisite installation.

@param string $theme_key
@param array  $theme

@return bool
Create branch switcher row for multisite installation .