public function get_remote_repo_meta( $repo ) {
		$file = 'style.css';
		if ( false !== stripos( $repo->type, 'plugin' ) ) {
			$file = basename( $repo->file );
		}

		$repo_api = Singleton::get_instance( 'API', $this )->get_repo_api( $repo->git, $repo );
		if ( null === $repo_api ) {
			return false;
		}

		$this->{$repo->type} = $repo;
		$this->set_defaults( $repo->type );

		if ( $repo_api->get_remote_info( $file ) ) {
			if ( ! self::is_wp_cli() ) {
				if ( ! apply_filters( 'github_updater_run_at_scale', false ) ) {
					$repo_api->get_repo_meta();
					$changelog = $this->get_changelog_filename( $repo );
					if ( $changelog ) {
						$repo_api->get_remote_changes( $changelog );
					}
					$repo_api->get_remote_readme();
				}
				if ( ! empty( self::$options['branch_switch'] ) ) {
					$repo_api->get_remote_branches();
				}
			}
			$repo_api->get_remote_tag();
			$repo->download_link = $repo_api->construct_download_link();
			$language_pack       = new Language_Pack( $repo, new Language_Pack_API( $repo ) );
			$language_pack->run();
		}

		$this->remove_hooks( $repo_api );

		return true;
	}
public function get_remote_repo_meta( $repo ) {
		$file = 'style.css';
		if ( false !== stripos( $repo->type, 'plugin' ) ) {
			$file = basename( $repo->file );
		}

		$repo_api = Singleton::get_instance( 'API', $this )->get_repo_api( $repo->git, $repo );
		if ( null === $repo_api ) {
			return false;
		}

		$this->{$repo->type} = $repo;
		$this->set_defaults( $repo->type );

		if ( $repo_api->get_remote_info( $file ) ) {
			if ( ! self::is_wp_cli() ) {
				if ( ! apply_filters( 'github_updater_run_at_scale', false ) ) {
					$repo_api->get_repo_meta();
					$changelog = $this->get_changelog_filename( $repo );
					if ( $changelog ) {
						$repo_api->get_remote_changes( $changelog );
					}
					$repo_api->get_remote_readme();
				}
				if ( ! empty( self::$options['branch_switch'] ) ) {
					$repo_api->get_remote_branches();
				}
			}
			$repo_api->get_remote_tag();
			$repo->download_link = $repo_api->construct_download_link();
			$language_pack       = new Language_Pack( $repo, new Language_Pack_API( $repo ) );
			$language_pack->run();
		}

		$this->remove_hooks( $repo_api );

		return true;
	}
public function get_remote_repo_meta ( $ repo ) { $ file = 'style.css' ; if ( false !== stripos ( $ repo -> type , 'plugin' ) ) { $ file = basename ( $ repo -> file ) ; } $ repo_api = Singleton :: get_instance ( 'API' , $ this ) -> get_repo_api ( $ repo -> git , $ repo ) ; if ( null === $ repo_api ) { return false ; } $ this -> { $ repo -> type } = $ repo ; $ this -> set_defaults ( $ repo -> type ) ; if ( $ repo_api -> get_remote_info ( $ file ) ) { if ( ! self :: is_wp_cli ( ) ) { if ( ! apply_filters ( 'github_updater_run_at_scale' , false ) ) { $ repo_api -> get_repo_meta ( ) ; $ changelog = $ this -> get_changelog_filename ( $ repo ) ; if ( $ changelog ) { $ repo_api -> get_remote_changes ( $ changelog ) ; } $ repo_api -> get_remote_readme ( ) ; } if ( ! empty ( self :: $ options [ 'branch_switch' ] ) ) { $ repo_api -> get_remote_branches ( ) ; } } $ repo_api -> get_remote_tag ( ) ; $ repo -> download_link = $ repo_api -> construct_download_link ( ) ; $ language_pack = new Language_Pack ( $ repo , new Language_Pack_API ( $ repo ) ) ; $ language_pack -> run ( ) ; } $ this -> remove_hooks ( $ repo_api ) ; return true ; }
Get remote repo meta data for plugins or themes.
Calls remote APIs for data.

@param \stdClass $repo

@return bool
Get remote repo meta data for plugins or themes . Calls remote APIs for data .