'', 'id' => '', 'height' => 282, 'width' => 450, ); $attr = shortcode_atts( $default_atts, $attr, 'twitter-timeline' ); if ( $attr['username'] != preg_replace( '/[^A-Za-z0-9_]+/', '', $attr['username'] ) ) return ''; if ( ! is_numeric( $attr['id'] ) ) return ''; $tweets_by = sprintf( __( 'Tweets by @%s', 'jetpack' ), $attr['username'] ); $output = '' . esc_html( $tweets_by ) . ''; add_action( 'wp_footer', 'twitter_timeline_js' ); return $output; } function twitter_timeline_js() { echo ''; }