wp_trim_words( $content, 10, '...' ), 'post_content' => $content, 'post_status' => 'publish', 'post_author' => get_current_user_id(), ) ); if ( $post_id && ! is_wp_error( $post_id ) ) { if ( $quote_of && get_post( $quote_of ) ) { update_post_meta( $post_id, '_blurt_repost_of', $quote_of ); update_post_meta( $post_id, '_blurt_is_quote_repost', '1' ); } // Attach uploaded images to the new post. if ( ! empty( $_POST['blurt_images'] ) ) { $image_ids = array_map( 'absint', explode( ',', sanitize_text_field( $_POST['blurt_images'] ) ) ); $image_ids = array_filter( $image_ids ); blurt_attach_images_to_post( $post_id, $image_ids ); } wp_safe_redirect( home_url() ); exit; } } } } get_header(); ?>

<?php echo esc_attr( wp_get_current_user()->display_name ); ?>