Make WordPress Core

Ticket #42680: edit-image.diff

File edit-image.diff, 1.1 KB (added by jjcomack, 9 years ago)
  • src/wp-includes/js/media/controllers/edit-image.js

    diff --git src/wp-includes/js/media/controllers/edit-image.js src/wp-includes/js/media/controllers/edit-image.js
    index ce34d14cf..dd55e4449 100644
    EditImage = wp.media.controller.State.extend(/** @lends wp.media.controller.Edit  
    3232        },
    3333
    3434        /**
     35         * Activates a frame for editing a featured image.
     36         *
    3537         * @since 3.9.0
     38         *
     39         * @returns {void}
    3640         */
    3741        activate: function() {
    3842                this.frame.on( 'toolbar:render:edit-image', _.bind( this.toolbar, this ) );
    3943        },
    4044
    4145        /**
     46         * Deactivates a frame for editing a featured image.
     47         *
    4248         * @since 3.9.0
     49         *
     50         * @returns {void}
    4351         */
    4452        deactivate: function() {
    4553                this.frame.off( 'toolbar:render:edit-image' );
    4654        },
    4755
    4856        /**
     57         * @summary Adds a toolbar with a back button.
     58         *
     59         * When the back button is pressed it checks whether there is a previous state.
     60         * In case there is a previous state it sets that previous state otherwise it
     61         * closes the frame.
     62         *
    4963         * @since 3.9.0
     64         *
     65         * @returns {void}
    5066         */
    5167        toolbar: function() {
    5268                var frame = this.frame,