private function fix_gitlab_release_asset_directory( $new_source, $remote_source, $upgrader_object, $slug ) {
		if ( ( isset( $upgrader_object->config[ $slug ]->release_asset ) &&
			$upgrader_object->config[ $slug ]->release_asset ) &&
			! empty( $upgrader_object->config[ $slug ]->ci_job )
		) {
			$new_source = trailingslashit( dirname( $remote_source ) ) . $slug;
			add_filter( 'upgrader_post_install', [ $this, 'upgrader_post_install' ], 10, 3 );
		}

		return $new_source;
	}
private function fix_gitlab_release_asset_directory( $new_source, $remote_source, $upgrader_object, $slug ) {
		if ( ( isset( $upgrader_object->config[ $slug ]->release_asset ) &&
			$upgrader_object->config[ $slug ]->release_asset ) &&
			! empty( $upgrader_object->config[ $slug ]->ci_job )
		) {
			$new_source = trailingslashit( dirname( $remote_source ) ) . $slug;
			add_filter( 'upgrader_post_install', [ $this, 'upgrader_post_install' ], 10, 3 );
		}

		return $new_source;
	}
private function fix_gitlab_release_asset_directory ( $ new_source , $ remote_source , $ upgrader_object , $ slug ) { if ( ( isset ( $ upgrader_object -> config [ $ slug ] -> release_asset ) && $ upgrader_object -> config [ $ slug ] -> release_asset ) && ! empty ( $ upgrader_object -> config [ $ slug ] -> ci_job ) ) { $ new_source = trailingslashit ( dirname ( $ remote_source ) ) . $ slug ; add_filter ( 'upgrader_post_install' , [ $ this , 'upgrader_post_install' ] , 10 , 3 ) ; } return $ new_source ; }
Renaming if using a GitLab Release Asset.
It has a different download directory structure.

@param string       $new_source
@param string       $remote_source
@param Plugin|Theme $upgrader_object
@param string       $slug

@return string $new_source
Renaming if using a GitLab Release Asset . It has a different download directory structure .