Opened 16 years ago
Closed 16 years ago
#11849 closed defect (bug) (duplicate)
admin-ajax does notices
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.0 |
| Component: | Warnings/Notices | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Minor Problem. Attached patch just shows where.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Lower down in the file when we check for $_POST, we surround a switch with an isset.
Here when we check for $_GET (with the patch), if not set it would allow an "wp_ajax_" action to execute.
Also, when we check for
$_REQUEST['action']for nopriv, we check if it is empty.We should probably standardize all of them to prevent an empty action from triggering a hook.