Skip to content
Create a gist now

Instantly share code, notes, and snippets.

//$sec_header is supposed to be $gistgit
$gistgit = wp_remote_retrieve_body( wp_remote_get(''. $user .'/gists', array('timeout' => 10)));
if( is_wp_error($gistgit)) {
$error_string = $sec_header->get_error_message();
echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.