[wp-trac] [WordPress Trac] #55996: the get_the_block_template_html call all the same functions as the the_conent filter so they are run twice

WordPress Trac noreply at wordpress.org
Fri Feb 10 19:01:44 UTC 2023


#55996: the get_the_block_template_html call all the same functions as the
the_conent filter so they are run twice
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.2
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing changes-requested                      |  performance
-------------------------------------------------+-------------------------

Comment (by costdev):

 #57351 was opened regarding shortcodes not being escaped when using the
 documented `[[shortcode]]` format.

 I tracked this to the same issue this ticket reports: `the_content`
 filters were running twice, first to convert the `[[shortcode]]` to a
 literal `[shortcode]`, then again to render the shortcode.

 When I applied [https://github.com/WordPress/wordpress-develop/pull/3549
 PR 3549] from this ticket, `[[shortcode]]` was correctly converted to a
 literal `[shortcode]`. While there may still be work left to do on the PR,
 it appears to resolve this particular issue - Nice!

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


More information about the wp-trac mailing list