Skip to content

Commit f3fea92

Browse files
committed
Fix broken style sheet URL
GitHub is now including the full URL to the style sheet in their JSON response, so the resolved URL was https://gist.github.comhttp://gist.github.com... which broke the appearance of gists. Props to @wpbacon. Fixes bradyvercher#42
1 parent fc8f8fd commit f3fea92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-gistpress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function get_gist_html( $url, array $args ) {
378378

379379
// Update the style sheet reference.
380380
if ( ! empty( $json->stylesheet ) ) {
381-
update_option( 'gistpress_stylesheet', 'https://gist.github.com' . $json->stylesheet );
381+
update_option( 'gistpress_stylesheet', $json->stylesheet );
382382
}
383383
}
384384

0 commit comments

Comments
 (0)