Make WordPress Core

Ticket #53765: 53765.2.diff

File 53765.2.diff, 909 bytes (added by joedolson, 2 months ago)

New patch

  • src/js/media/controllers/featured-image.js

     
    117117
    118118                selection.reset( attachment ? [ attachment ] : [] );
    119119
    120                 if ( library.hasMore() ) {
     120                if ( ! infinite_scrolling && library.hasMore() ) {
    121121                        library.more();
    122122                }
    123123        }
  • src/js/media/controllers/replace-image.js

     
    104104
    105105                selection.reset( attachment ? [ attachment ] : [] );
    106106
    107                 if ( library.hasMore() ) {
     107                if ( ! infinite_scrolling && library.getTotalAttachments() == 0 && library.hasMore() ) {
    108108                        library.more();
    109109                }
    110110        }