function github_gist_embed_handler($matches, $attr, $url, $rawattr) { // Let the shortcode callback do all the work return github_gist_shortcode($attr, $url); }
function github_gist_embed_handler($matches, $attr, $url, $rawattr) { wp_enqueue_script('jetpack-gist-embed', plugins_url('js/gist.js', __FILE__), array('jquery'), false, true); // Let the shortcode callback do all the work return github_gist_shortcode($attr, $url); }