Make WordPress Core

Ticket #51251: 51251.1.patch

File 51251.1.patch, 459 bytes (added by Mista-Flo, 4 years ago)
  • src/wp-admin/includes/ajax-actions.php

    diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
    index 85996d2676..16ce1093a4 100644
    a b function wp_ajax_image_editor() { 
    26252625        wp_image_editor( $attachment_id, $msg );
    26262626        $html = ob_get_clean();
    26272627
    2628         if ( $msg->error ) {
     2628        if ( isset( $msg->error ) ) {
    26292629                wp_send_json_error(
    26302630                        array(
    26312631                                'message' => $msg,