Changeset 52288
- Timestamp:
- 11/30/2021 07:05:52 PM (3 years ago)
- Location:
- trunk/src/js/media/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/controllers/featured-image.js
r52287 r52288 109 109 library = this.get('library'), 110 110 id = wp.media.view.settings.post.featuredImageId, 111 infiniteScrolling = wp.media.view.settings.infiniteScrolling, 111 112 attachment; 112 113 … … 118 119 selection.reset( attachment ? [ attachment ] : [] ); 119 120 120 if ( ! infinite _scrolling && library.hasMore() ) {121 if ( ! infiniteScrolling && library.hasMore() ) { 121 122 library.more(); 122 123 } -
trunk/src/js/media/controllers/replace-image.js
r52287 r52288 101 101 var selection = this.get('selection'), 102 102 library = this.get('library'), 103 attachment = this.image.attachment; 103 attachment = this.image.attachment, 104 infiniteScrolling = wp.media.view.settings.infiniteScrolling; 104 105 105 106 selection.reset( attachment ? [ attachment ] : [] ); 106 107 107 if ( ! infinite _scrolling && library.getTotalAttachments()== 0 && library.hasMore() ) {108 if ( ! infiniteScrolling && library.getTotalAttachments() === 0 && library.hasMore() ) { 108 109 library.more(); 109 110 }
Note: See TracChangeset
for help on using the changeset viewer.