protected function _get_zip_url( $remote ) {
		$url = false;

		if ( ! empty( $remote->assets ) && is_array( $remote->assets ) ) {
			if ( ! empty( $remote->assets[0] ) && is_object( $remote->assets[0] ) ) {
				if ( ! empty( $remote->assets[0]->browser_download_url ) ) {
					$url = $remote->assets[0]->browser_download_url;
				}
			}
		}

		$tag_name = isset( $remote->tag_name ) ? $remote->tag_name : null;

		if ( ! $url && $tag_name ) {
			$url = sprintf(
				'https://github.com/%1$s/%2$s/archive/%3$s.zip',
				$this->user_name,
				$this->repository,
				$tag_name
			);
		}

		return apply_filters(
			sprintf(
				'inc2734_github_theme_updater_zip_url_%1$s/%2$s',
				$this->user_name,
				$this->repository
			),
			$url,
			$this->user_name,
			$this->repository,
			$tag_name
		);
	}
protected function _get_zip_url( $remote ) {
		$url = false;

		if ( ! empty( $remote->assets ) && is_array( $remote->assets ) ) {
			if ( ! empty( $remote->assets[0] ) && is_object( $remote->assets[0] ) ) {
				if ( ! empty( $remote->assets[0]->browser_download_url ) ) {
					$url = $remote->assets[0]->browser_download_url;
				}
			}
		}

		$tag_name = isset( $remote->tag_name ) ? $remote->tag_name : null;

		if ( ! $url && $tag_name ) {
			$url = sprintf(
				'https://github.com/%1$s/%2$s/archive/%3$s.zip',
				$this->user_name,
				$this->repository,
				$tag_name
			);
		}

		return apply_filters(
			sprintf(
				'inc2734_github_theme_updater_zip_url_%1$s/%2$s',
				$this->user_name,
				$this->repository
			),
			$url,
			$this->user_name,
			$this->repository,
			$tag_name
		);
	}
protected function _get_zip_url ( $ remote ) { $ url = false ; if ( ! empty ( $ remote -> assets ) && is_array ( $ remote -> assets ) ) { if ( ! empty ( $ remote -> assets [ 0 ] ) && is_object ( $ remote -> assets [ 0 ] ) ) { if ( ! empty ( $ remote -> assets [ 0 ] -> browser_download_url ) ) { $ url = $ remote -> assets [ 0 ] -> browser_download_url ; } } } $ tag_name = isset ( $ remote -> tag_name ) ? $ remote -> tag_name : null ; if ( ! $ url && $ tag_name ) { $ url = sprintf ( 'https://github.com/%1$s/%2$s/archive/%3$s.zip' , $ this -> user_name , $ this -> repository , $ tag_name ) ; } return apply_filters ( sprintf ( 'inc2734_github_theme_updater_zip_url_%1$s/%2$s' , $ this -> user_name , $ this -> repository ) , $ url , $ this -> user_name , $ this -> repository , $ tag_name ) ; }
Return URL of new zip file

@param object $remote Data from GitHub API
@return string
Return URL of new zip file