Ticket #53765: 53765.diff
| File 53765.diff, 1.3 KB (added by , 4 years ago) |
|---|
-
src/js/media/controllers/featured-image.js
87 87 * @since 3.5.0 88 88 */ 89 89 activate: function() { 90 this.updateSelection();91 90 this.frame.on( 'open', this.updateSelection, this ); 92 91 93 92 Library.prototype.activate.apply( this, arguments ); … … 107 106 */ 108 107 updateSelection: function() { 109 108 var selection = this.get('selection'), 109 library = this.get('library'), 110 110 id = wp.media.view.settings.post.featuredImageId, 111 111 attachment; 112 112 … … 116 116 } 117 117 118 118 selection.reset( attachment ? [ attachment ] : [] ); 119 120 if ( library.hasMore() ) { 121 library.more(); 122 } 119 123 } 120 124 }); 121 125 -
src/js/media/controllers/replace-image.js
99 99 */ 100 100 updateSelection: function() { 101 101 var selection = this.get('selection'), 102 library = this.get('library'), 102 103 attachment = this.image.attachment; 103 104 104 105 selection.reset( attachment ? [ attachment ] : [] ); 106 107 if ( library.hasMore() ) { 108 library.more(); 109 } 105 110 } 106 111 }); 107 112