[wp-trac] [WordPress Trac] #25255: Extend admin-ajax to detect multiple user capability and admin-ajax.php does not return 0
WordPress Trac
noreply at wordpress.org
Wed Sep 11 05:32:24 UTC 2013
#25255: Extend admin-ajax to detect multiple user capability and admin-ajax.php
does not return 0
--------------------------------+----------------------
Reporter: godhulii_1985 | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.6
Severity: normal | Resolution: invalid
Keywords: close dev-feedback |
--------------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The `die( '0' );` isn't changing. You need to issue `die()` or `wp_die()`
at the end of your callback. That's the way it has always been and there's
no reason to change that.
Ajax responses are based on the same hooks API as most of core. Just
because you have something hooked to an action, doesn't mean you actually
need to take action. You could "fall through" to the next handler.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25255#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list