[wp-trac] [WordPress Trac] #45022: Add a wp-ajax.php at the root of wordpress
WordPress Trac
noreply at wordpress.org
Tue Oct 2 21:54:05 UTC 2018
#45022: Add a wp-ajax.php at the root of wordpress
------------------------------------------------+--------------------------
Reporter: tofandel | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Security | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch needs-docs needs-codex | Focuses:
------------------------------------------------+--------------------------
Comment (by tofandel):
This was proposed 7 years ago and never merged, then closed two years ago
because of the Rest API, it's indeed very sad it didn't make it 7 years
ago..
Should I do some archeology and dig up the fossile (aka reopen the
ticket)?
Because I still think the wp-ajax.php file should be included, the rest
api is something that maybe overpowered for what wp-ajax.php would be used
for (Eg: Simple actions. At the top of my mind: pushing a like button that
makes an ajax request or getting a share count every 2 minutes, updating a
single form field via ajax that need to be very fast) so basically every
ajax request that is light and needs to be fast should pass there.
And I'm pretty sure the rest API is ~30% slower than what this would
achieve because of the rewrite endpoint (htaccess invisible redirect to
index.php + preg_match iteration needed to find the requested endpoint
then wp_query endpoint parsing)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45022#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list