[wp-trac] [WordPress Trac] #57095: Shortcode's query are executing at backend because of the_content filter

WordPress Trac noreply at wordpress.org
Mon Nov 14 16:54:32 UTC 2022


#57095: Shortcode's query are executing at backend because of the_content filter
--------------------------+------------------------------
 Reporter:  vijayhardaha  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ocean90):

 This is a bit related to #55151 and the notes from @gziolo in
 https://github.com/WordPress/gutenberg/issues/33542#issuecomment-1036465478.

 The REST API includes a rendered version of the content which means
 shortcodes are rendered too. And since the preloading runs in the same
 request you'll get the extra queries and such.

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


More information about the wp-trac mailing list