cache = $cache; $this->files = $files; $this->repo = $repo; $this->user = $user; } public function shortcode() { $cache_key = 'f13_github_repo'.sha1(serialize( $this->user.$this->repo.$this->files )); $cache = get_transient( $cache_key ); if ( $cache ) { echo ''; return $cache; } $m = new \F13\Github\Models\Git_api(); $data = $m->get_repository( $this->user, $this->repo ); if (array_key_exists('message', $data)) { return '