Opened 5 years ago

Closed 5 years ago

#7613 closed defect (bug) (fixed)

Impossible to clear list of recently active plugins

Reported by: caesarsgrunt Owned by: anonymous
Priority: high Milestone: 2.7
Component: Administration Version: 2.7
Severity: normal Keywords: has-patch commit
Cc: caesarsgrunt

Description

It is no longer possible to clear the list of recently active plugins, in WP2.7-haemorrhage (trunk). This is caused by the new 'Actions' dropdown (which I don't like, BTW, though I understand the reasons for it) overriding the previously-set $action variable.

Patch attached.

Attachments (2)

7613.diff (374 bytes) - added by caesarsgrunt 5 years ago.
Patch for issue described.
7613.2.diff (404 bytes) - added by caesarsgrunt 5 years ago.
Patch which checks isset and !empty to avoid notices.

Download all attachments as: .zip

Change History (8)

Patch for issue described.

This won't work if the value of $_REQUESTaction? is ever 0, '0', or an array - but I don't think it ever is.

Ooops. I hate automatic linking.
That should have been $_REQUEST['action'].

  • Keywords needs-patch added; has-patch removed

This will cause a notice if $_REQUEST['action'] doesn't exist. The isset check is there to ensure that the key index exists before checking. The correct patch will add the !empty() check after the isset() check.

Patch which checks isset and !empty to avoid notices.

  • Keywords has-patch added; needs-patch removed

Yes, of course. Sorry about that. This should be OK, I think.

  • Keywords commit added
  • Resolution set to fixed
  • Status changed from new to closed

(In [8755]) Make it possible to clear the recently active plugins list. Fixes #7613 props caesarsgrunt.

Note: See TracTickets for help on using tickets.