WordPress.org

Make WordPress Core

Ticket #6821: 6821.check-errors2.diff

File 6821.check-errors2.diff, 377 bytes (added by markoheijnen, 7 years ago)

Return error when no editor is selected

  • wp-includes/class-wp-image-editor.php

     
    4545                        return $editor;
    4646                }
    4747
    48                 return false;
     48                return new WP_Error( 'no_editor', __('No editor could be selected') );
    4949        }
    5050
    5151        /**