public function themes_api( $false, $action, $response ) {
		if ( ! ( 'theme_information' === $action ) ) {
			return $false;
		}

		$theme = isset( $this->config[ $response->slug ] ) ? $this->config[ $response->slug ] : false;

		// Skip if waiting for background update.
		if ( $this->waiting_for_background_update( $theme ) ) {
			return $false;
		}

		// wp.org theme.
		if ( ! $theme ) {
			return $false;
		}

		$response->slug         = $theme->slug;
		$response->name         = $theme->name;
		$response->homepage     = $theme->uri;
		$response->donate_link  = $theme->donate_link;
		$response->version      = $theme->remote_version;
		$response->sections     = $theme->sections;
		$response->description  = implode( "\n", $theme->sections );
		$response->author       = $theme->author;
		$response->preview_url  = $theme->theme_uri;
		$response->requires     = $theme->requires;
		$response->tested       = $theme->tested;
		$response->downloaded   = $theme->downloaded;
		$response->last_updated = $theme->last_updated;
		$response->rating       = $theme->rating;
		$response->num_ratings  = $theme->num_ratings;

		return $response;
	}
public function themes_api( $false, $action, $response ) {
		if ( ! ( 'theme_information' === $action ) ) {
			return $false;
		}

		$theme = isset( $this->config[ $response->slug ] ) ? $this->config[ $response->slug ] : false;

		// Skip if waiting for background update.
		if ( $this->waiting_for_background_update( $theme ) ) {
			return $false;
		}

		// wp.org theme.
		if ( ! $theme ) {
			return $false;
		}

		$response->slug         = $theme->slug;
		$response->name         = $theme->name;
		$response->homepage     = $theme->uri;
		$response->donate_link  = $theme->donate_link;
		$response->version      = $theme->remote_version;
		$response->sections     = $theme->sections;
		$response->description  = implode( "\n", $theme->sections );
		$response->author       = $theme->author;
		$response->preview_url  = $theme->theme_uri;
		$response->requires     = $theme->requires;
		$response->tested       = $theme->tested;
		$response->downloaded   = $theme->downloaded;
		$response->last_updated = $theme->last_updated;
		$response->rating       = $theme->rating;
		$response->num_ratings  = $theme->num_ratings;

		return $response;
	}
public function themes_api ( $ false , $ action , $ response ) { if ( ! ( 'theme_information' === $ action ) ) { return $ false ; } $ theme = isset ( $ this -> config [ $ response -> slug ] ) ? $ this -> config [ $ response -> slug ] : false ; // Skip if waiting for background update. if ( $ this -> waiting_for_background_update ( $ theme ) ) { return $ false ; } // wp.org theme. if ( ! $ theme ) { return $ false ; } $ response -> slug = $ theme -> slug ; $ response -> name = $ theme -> name ; $ response -> homepage = $ theme -> uri ; $ response -> donate_link = $ theme -> donate_link ; $ response -> version = $ theme -> remote_version ; $ response -> sections = $ theme -> sections ; $ response -> description = implode ( "\n" , $ theme -> sections ) ; $ response -> author = $ theme -> author ; $ response -> preview_url = $ theme -> theme_uri ; $ response -> requires = $ theme -> requires ; $ response -> tested = $ theme -> tested ; $ response -> downloaded = $ theme -> downloaded ; $ response -> last_updated = $ theme -> last_updated ; $ response -> rating = $ theme -> rating ; $ response -> num_ratings = $ theme -> num_ratings ; return $ response ; }
Put changelog in themes_api, return WP.org data as appropriate.

@param bool      $false
@param string    $action
@param \stdClass $response

@return mixed
Put changelog in themes_api return WP . org data as appropriate .