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
|
| 32 | 32 | }, |
| 33 | 33 | |
| 34 | 34 | /** |
| | 35 | * Activates a frame for editing a featured image. |
| | 36 | * |
| 35 | 37 | * @since 3.9.0 |
| | 38 | * |
| | 39 | * @returns {void} |
| 36 | 40 | */ |
| 37 | 41 | activate: function() { |
| 38 | 42 | this.frame.on( 'toolbar:render:edit-image', _.bind( this.toolbar, this ) ); |
| 39 | 43 | }, |
| 40 | 44 | |
| 41 | 45 | /** |
| | 46 | * Deactivates a frame for editing a featured image. |
| | 47 | * |
| 42 | 48 | * @since 3.9.0 |
| | 49 | * |
| | 50 | * @returns {void} |
| 43 | 51 | */ |
| 44 | 52 | deactivate: function() { |
| 45 | 53 | this.frame.off( 'toolbar:render:edit-image' ); |
| 46 | 54 | }, |
| 47 | 55 | |
| 48 | 56 | /** |
| | 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 | * |
| 49 | 63 | * @since 3.9.0 |
| | 64 | * |
| | 65 | * @returns {void} |
| 50 | 66 | */ |
| 51 | 67 | toolbar: function() { |
| 52 | 68 | var frame = this.frame, |