From 5769015bb650f17f9e51673495df1de7e09aad19 Mon Sep 17 00:00:00 2001 From: Irina Sokolovskaja Date: Wed, 8 Jul 2015 21:03:13 +0300 Subject: [PATCH] Added count of stars to embed repo --- github-embed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/github-embed.php b/github-embed.php index 1cbaf08..d0fbc4d 100644 --- a/github-embed.php +++ b/github-embed.php @@ -338,6 +338,7 @@ class github_embed { $response->html .= '

'.esc_html($repo->description)."
"; $response->html .= ''.esc_html($repo->html_url)."
"; $response->html .= esc_html ( number_format_i18n ( $repo->forks_count ) )." forks.
"; + $response->html .= esc_html ( number_format_i18n ( $repo->stargazers_count ) )." stars.
"; $response->html .= esc_html ( number_format_i18n ( $repo->open_issues_count ) )." open issues.
"; if ( count ( $commits ) ) {