[wp-trac] [WordPress Trac] #46063: echo in functions called by add_shortcode()
WordPress Trac
noreply at wordpress.org
Tue Jan 22 11:56:49 UTC 2019
#46063: echo in functions called by add_shortcode()
----------------------------------+-----------------------------
Reporter: kaikli | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 5.0.3
Severity: normal | Keywords:
Focuses: javascript, rest-api |
----------------------------------+-----------------------------
**discription:** echos in functions called by add_shortcode, will be added
in front of the json returned by the rest-api
**error:** this produces a json parsing error by the reciever
\\
**example**:
- site: {{{wp-admin/post-new.php?post_type=page}}}
- request: {{{/wp-
json/wp/v2/pages?per_page=100&exclude=11&parent_exclude=11&orderby=menu_order&order=asc&context=edit&_locale=user}}}
- answer: {{{'echoed-data-from-function-called-by-add_shortcode{"json-
returned": "from-wordpress"}'}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46063>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list