{"id":10247,"date":"2010-08-24T03:24:02","date_gmt":"2010-08-24T03:24:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/embed-github-gist\/"},"modified":"2012-12-13T21:05:03","modified_gmt":"2012-12-13T21:05:03","slug":"embed-github-gist","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/embed-github-gist\/","author":6796876,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.13","stable_tag":"0.13","tested":"3.5.2","requires":"2.8.6","requires_php":"","requires_plugins":"","header_name":"Embed GitHub Gist","header_author":"Dragonfly Development","header_description":"","assets_banners_color":"","last_updated":"2012-12-13 21:05:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/embed-github-gist\/","header_author_uri":"http:\/\/dflydev.com\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":13282,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.13":"<p>Now looks for EMBED_GISTHUB_USERNAME and EMBED_GISTHUB_PASSWORD<\/p>","0.11":"<p>Now defaults to not embedding HTML directly.\nNow requires json_decode to be available.<\/p>","0.5":"<p>Now defaults to using cache and embedding HTML directly.<\/p>","0.4":"<p>No changes from previous release.<\/p>","0.3":"<p>No changes from previous release.<\/p>","0.2":"<p>Should have no negative impact.<\/p>","0.1":"<p>First release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.10","0.11","0.12","0.13","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[7823,1673,3986,8747,2207],"plugin_category":[56],"plugin_contributors":[83799],"plugin_business_model":[],"class_list":["post-10247","plugin","type-plugin","status-publish","hentry","plugin_tags-gist","plugin_tags-github","plugin_tags-highlight","plugin_tags-source","plugin_tags-syntax","plugin_category-social-and-sharing","plugin_contributors-dflydev","plugin_committers-dflydev"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/embed-github-gist.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This project is available for forking on GitHub:<\/p>\n\n<ul>\n<li>https:\/\/github.com\/dflydev\/embed-github-gist<\/li>\n<\/ul>\n\n<p>Embed <a href=\"http:\/\/github.com\/\">GitHub<\/a> <a href=\"http:\/\/gist.github.com\">Gists<\/a> into\nWordPress. Provides a shortcode for posts and pages but also has the ability\nto embed by hand in the event that a Gist needs to be embedded somewhere in\nthe page that does not pass through the shortcode filters.<\/p>\n\n<p>Examples:<\/p>\n\n<pre><code>[gist id=546764]\n[gist id=546764 file=file.txt]\n[gist id=546764 file=file.txt bump=1]\n[gist]http:\/\/gist.github.com\/546764[\/gist]\n<\/code><\/pre>\n\n<p>Cache is implemented with the Transients API to minimize delay on loading\ncontent. Default TTL (time to live) is 86400 seconds or one day.<\/p>\n\n<h4>Upcoming features:<\/h4>\n\n<ul>\n<li>Option for setting default TTL<\/li>\n<li>Option to bypass cache entirely<\/li>\n<li>Implement admin interface to control options<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin zip file<\/li>\n<li>Unzip contents of plugin zip file<\/li>\n<li>Upload the embed-github-gist directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Start using the plugin by adding Gists to posts!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How can I fix rate limit exceded errors?<\/dt>\n<dd><p>Define EMBED_GISTHUB_USERNAME and EMBED_GISTHUB_PASSWORD in wp-settings.php.<\/p><\/dd>\n<dt>Can the cache be broken?<\/dt>\n<dd><p>Yes. Use a unique bump value to force cache to update. For instance, if you have\nthe following:<\/p>\n\n<pre><code>[gist id=546764]\n<\/code><\/pre>\n\n<p>The cache can be broken by specifying a bump value:<\/p>\n\n<pre><code>[gist id=546764 bump=1]\n<\/code><\/pre>\n\n<p>To break the cache again later, change to a new unique bump value:<\/p>\n\n<pre><code>[gist id=546764 bump=2]\n<\/code><\/pre><\/dd>\n<dt>Can I change the TTL on a Gist-by-Gist basis?<\/dt>\n<dd><p>Yes. Specify a TTL (in seconds) like this:<\/p>\n\n<pre><code>[gist id=546764 ttl=3600]\n<\/code><\/pre><\/dd>\n<dt>Can I embed a Gist outside of a post or a page?<\/dt>\n<dd><p>Yes.<\/p>\n\n<pre><code>&lt;?php echo embed_github_gist(546764); ?&gt;\n<\/code><\/pre><\/dd>\n<dt>Can I display a specific file from my gist?<\/dt>\n<dd><p>Ues. You can use the <code>file<\/code> parameter:<\/p>\n\n<pre><code>[gist id=546764 file=file.txt]\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.13<\/h4>\n\n<ul>\n<li>Looks at EMBED_GISTHUB_USERNAME and EMBED_GISTHUB_PASSWORD for API requests<\/li>\n<\/ul>\n\n<h4>0.12<\/h4>\n\n<ul>\n<li>Bump release (\"same as 0.11\")<\/li>\n<li>Added upgrade notes<\/li>\n<\/ul>\n\n<h4>0.11<\/h4>\n\n<ul>\n<li>Updated to account for recent changes to Gist.<\/li>\n<\/ul>\n\n<h4>0.10<\/h4>\n\n<ul>\n<li>Bump release (\"same as 0.9\")<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>Fix js link bug. Thanks to wrightlabs.<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>Better handle SSL errors. Thanks to gabesumner and CaioProiete.<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>Edit to also include $file in cache key (thanks https:\/\/github.com\/troufster)<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Embed stylesheet is now cached locally by default<\/li>\n<li>Fixed small file-bug when using json<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Updates from oncletom (change default settings, works with new HTTPS URL from Gist)<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Bump release (\"same as 0.2\")<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Bump release (\"same as 0.2\")<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added to support passing a Gist URL as the content of the [gist] shortcode.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Embed GitHub Gists into WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10247"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dflydev"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10247"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10247"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10247"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10247"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10247"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}