[wp-trac] [WordPress Trac] #51251: Fix PHP notice when opening the edit image popup
WordPress Trac
noreply at wordpress.org
Sat Sep 5 18:11:03 UTC 2020
#51251: Fix PHP notice when opening the edit image popup
---------------------------------------+-----------------------------
Reporter: Mista-Flo | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5.2
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-screenshots | Focuses:
---------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"48946" 48946]:
{{{
#!CommitTicketReference repository="" revision="48946"
Media: In `wp_ajax_image_editor()`, check if the `error` property exists
before accessing it.
This avoids a PHP notice when editing an image.
Follow-up to [48375].
Props Mista-Flo.
Fixes #51251.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51251#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list