[wp-trac] [WordPress Trac] #36614: admin-ajax.php is not compatible with multisite
WordPress Trac
noreply at wordpress.org
Thu Apr 21 11:39:38 UTC 2016
#36614: admin-ajax.php is not compatible with multisite
--------------------------------+------------------------
Reporter: helium-3 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Networks and Sites | Version: 4.3
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------
Changes (by helium-3):
* status: closed => reopened
* resolution: invalid =>
Comment:
In my humble opinion it creates confusion, as if there were multiple
admin-ajax.php files, but there is just one. I only suggested an
alternative that could co-exist, not a replacement of what is currently
used. Your example quite differs from my situation. /wp-admin is a part of
WordPress, but I'm using admin-ajax to fetch json data for single page
application that lives outside of WordPress. It would very much make sense
to call the file directly, that's why I created this ticket, it confused
me. With the current approach you have to know whether network uses
subdomains or directories, with this approach all you would need is blog
id. I think it would be a move in the right direction.
I'd very much prefer to use
'''''domain.com/wp-admin/admin-ajax.php?action=my_action&blog_id=4'''''
than
'''''domain.com/blog_path/wp-admin/admin-ajax.php?action=my_action'''''
AND
'''''subdomain.domain.com/wp-admin/admin-ajax.php?action=my_action'''''
for making ajax calls outside of WordPress. Just my 2 cents.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36614#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list