[wp-trac] [WordPress Trac] #22589: Network Admin + Ajax requests

WordPress Trac noreply at wordpress.org
Mon Nov 26 09:12:18 UTC 2012


#22589: Network Admin + Ajax requests
-----------------------------+-----------------------------
 Reporter:  dd32             |       Type:  feature request
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Administration
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-----------------------------
 Currently there is no Network admin based ajax handler, forcing plugins
 which exist solely within the Network Admin to either use `wp-admin/admin-
 ajax.php` or using the `load-{$page_hook}` hook to perform any actions.

 This is primarily a problem when the plugin only includes code on a
 conditional such as `is_network_admin()`, which would be false for a `/wp-
 admin/admin-ajax.php` request, as a result, only the `load-{$page_hook}`
 option above is viable for those.[[BR]]
 As a work around, plugins can include code on `is_network_admin() ||
 DOING_AJAX` to allow the usage of admin-ajax.php.

 Of course, the User Admin also suffers the same issue.

 I didn't see any previous tickets, and kind of want to say the existing
 'workaround' is appropriate, but recording it here so we can at least
 close it as wontfix if appropriate.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22589>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list