#51251 closed defect (bug) (fixed)
Fix PHP notice when opening the edit image popup
| Reported by: | Mista-Flo | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5.2 |
| Component: | Media | Version: | 5.5 |
| Severity: | normal | Keywords: | has-patch has-screenshots commit fixed-major |
| Cc: | Focuses: |
Description
Hi there, I noticed a PHP notice on the last trunk version while playing with the media library.
Steps to reproduce:
- Activate Query Monitor plugin
- Open your web console
- Go to upload.php page on the backend
- Select grid mode
- Click on an attachment image
- Click on 'Edit image' button
- An edit image popup loads, and you should see a PHP notice saying that $msg->error is undefined
Attachments (2)
Change History (11)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Can you please try to reproduce the issue? Just to be sure it's not something related to me, but when looking at the code, it seems better to check that errors property exist in error object, otherwise it can throw an error anyway.