Skip to content

Commit c1dad78

Browse files
committed
Update Post HTML formatting
- would like to write this prettier in future - ok for now, lines up with current weblog format and block editor
1 parent 26b0f9c commit c1dad78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quick-weblog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function quick_weblog_submit_form() {
8989
// Create a new post
9090
$post_data = array(
9191
'post_title' => $title,
92-
'post_content' => sprintf( '<blockquote>%s</blockquote><img src="%s" alt="%s"><p><a href="%s" target="_blank">%s</a></p>', $quote, $image_url, $image_description, $url, $url ),
92+
'post_content' => sprintf( '<blockquote class="wp-block-quote"><figure class="wp-block-image"><img decoding="async" src="%s" alt><figcaption class="wp-element-caption">%s</figcaption></figure><p>%s</p><cite><a href="%s" target="_blank" rel="noreferrer noopener">%s</a></cite></blockquote>', $image_url, $image_description, $quote, $url, $url ),
9393
'post_category' => array( $category ),
9494
'tags_input' => $tags,
9595
'post_status' => 'publish'

0 commit comments

Comments
 (0)