Problem/Motivation
We are passing by reference the admin_toolbar_tools.flush menu object, but in restricted permissions this might not actually exist, which results in an unexpected operand failure.
Proposed resolution
Conditionally check if admin_toolbar_tools.flush exists.
Remaining tasks
N/A
User interface changes
N/A
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | unexpected-operand-2923580.patch | 2.8 KB | sylus |
Comments
Comment #2
sylus commentedComment #3
adriancidThanks @sylus
Comment #4
adriancidComment #6
adriancid