Opened 7 years ago
Last modified 5 years ago
#43183 new enhancement
wp-comments-post.php endpoint support for OPTIONS
Reported by: | drzraf | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
Under some circumstance we may need cross-posting from one domain to another (without the wp-json API).
At least lets preflight requests flow normally
https://github.com/WordPress/WordPress/pull/338
Attachments (1)
Change History (3)
#1
@
5 years ago
- Keywords reporter-feedback added
- Version 4.9.2 deleted
@drzraf Sorry for the delay in getting a response to this ticket.
I'm curious, why would you want to cross-post directly using wp-comments-post.php
instead of using the REST API?
#2
@
5 years ago
I don't remember (not working on this project anymore). REST-API was still in early stage and I wanted to mimic (in AJAX) the traditional plain-form behavior as much as possible to avoid submission inconsistencies (esp' wrt to captcha, duplication detection & co).
Anyway, from a basic HTTP standard PoV, I still think OPTIONS requests should be replied to by WP.
patch v1