[wp-trac] [WordPress Trac] #57095: Shortcode's query are executing at backend because of the_content filter
WordPress Trac
noreply at wordpress.org
Sun Nov 13 18:55:52 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 | Keywords:
Focuses: |
--------------------------+-----------------------------
Steps to reproduce the issue & main issue description are available on
this GitHub issue https://github.com/WordPress/gutenberg/issues/45732
I investigated this issue more and found a couple of new things.
So if you'll check the callers-tracks image, you'll see
`block_editor_rest_api_preload` is being called, then from REST_API call
`apply_filters('the_content')` being used and which I think executes the
shortcode.
In file `wp-admin/edit-form-blocks.php`, I removed the `add_query_arg(
'context', 'edit', $rest_path )` on line no 65, after this change I don't
see the issue.
After and before this change, I see changes in XHR requests, I am
attaching both screenshots.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57095>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list