protected function get_update_url( $type, $action, $repo_name ) {
		$update_url = esc_attr(
			add_query_arg(
				[
					'action' => $action,
					$type    => rawurlencode( $repo_name ),
				],
				self_admin_url( 'update.php' )
			)
		);

		return $update_url;
	}
protected function get_update_url( $type, $action, $repo_name ) {
		$update_url = esc_attr(
			add_query_arg(
				[
					'action' => $action,
					$type    => rawurlencode( $repo_name ),
				],
				self_admin_url( 'update.php' )
			)
		);

		return $update_url;
	}
protected function get_update_url ( $ type , $ action , $ repo_name ) { $ update_url = esc_attr ( add_query_arg ( [ 'action' => $ action , $ type => rawurlencode ( $ repo_name ) , ] , self_admin_url ( 'update.php' ) ) ) ; return $ update_url ; }
Generate update URL.

@param string $type      ( plugin or theme ).
@param string $action
@param string $repo_name

@return string
Generate update URL .