[wp-trac] [WordPress Trac] #53957: Create a POST API endpoint for rendering legacy widgets
WordPress Trac
noreply at wordpress.org
Thu Aug 19 09:30:09 UTC 2021
#53957: Create a POST API endpoint for rendering legacy widgets
--------------------------+-----------------------------
Reporter: zieladam | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Core counterpart of [issue
33540:https://github.com/WordPress/gutenberg/issues/33540] from the
Gutenberg repo. We need both issues because the API change
Legacy widgets are rendered using an `<iframe />` with all the attributes
data URLencoded and packed into `src`.
This works when there aren't many parameters or when the server tolerates
very long query strings. Unfortunately, when one of these conditions isn't
met, we may see an error 414 URI too long.
To remedy the problem, we need to send the widget attributes outside of
the query string. POST request body is a reasonable candidate and so this
ticket is all about adding such an endpoint to the API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53957>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list