[wp-trac] [WordPress Trac] #62694: wpautop Misuse in the "widget_block_content" Filter with Shortcode Block (was: Title: wpautop Misuse in the "widget_block_content" Filter with Shortcode Block)

WordPress Trac noreply at wordpress.org
Mon Dec 16 08:48:05 UTC 2024


#62694: wpautop Misuse in the "widget_block_content" Filter with Shortcode Block
--------------------------+------------------------------
 Reporter:  arl1nd        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  6.7.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by arl1nd):

 Hello @dilip2615 thanks for your proposed solution, although it doesn't
 solve the problem.

 This should be addressed in higher level and patched within the WordPress
 core itself because it is an actual issue.

 The `do_blocks(...)` function removes the `wpautop(...)` automatically
 but... it is added again in `wp-includes/blocks/shortcode.php:19`

 One solution would be removing this wrapper from render_callback but I
 don't know the real impact of it!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62694#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list