Opened 14 years ago
Closed 14 years ago
#15336 closed defect (bug) (fixed)
AJAX plugin pagination issues
Reported by: | johnbillion | Owned by: | scribu |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Administration | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I'm out of the loop at the moment so forgive me if this is work in progress.
When paging through the Plugins screen (with the new AJAX pagination) the 'activate' and 'deactivate' links are missing.
To reproduce: Go to the Plugins screen and page through your plugins.
Tested at r16230. Marking as a blocker because, well, it is.
Change History (13)
#3
@
14 years ago
- Cc westi added
This is caused by the way the current_screen object is being re-incarnated.
Currently we trust whatever we receive in the GET request which is always going to be string data.
I've added the casts for now two force the two bools to be bools.
However, I'm not convinced this is the best solution for passing this data back from the JavaScript as it is now we blindly trust the data we receive.
Is any of it used in subsequent output?
#6
@
14 years ago
Still getting
An error has occured while loading the items.
AJAX response is
<b>Fatal error</b>: Cannot use object of type stdClass as array in <b>..\wp-admin\admin-ajax.php</b> on line <b>57</b><br />
Should probably use ->is_network
and ->is_user
?
#8
@
14 years ago
- Keywords needs-patch added
->is_network doesn't work too.
string(5) "false" with (bool) = bool(true)
:-(
See [16194]
Reproduced.