Ticket #23205: 23205.diff
File 23205.diff, 943 bytes (added by , 11 years ago) |
---|
-
wp-includes/js/media-views.js
689 689 690 690 // If we haven't been provided a `library`, create a `Selection`. 691 691 if ( ! this.get('library') ) 692 this.set( 'library', media.query({ type: 'image' }) ); 692 this.set( 'library', media.query( { 693 type: 'image', 694 uploadedTo: media.view.settings.post.id, 695 orderby: 'menuOrder', 696 order: 'ASC' 697 } ) ); 693 698 694 699 media.controller.Library.prototype.initialize.apply( this, arguments ); 695 700 … … 1475 1480 1476 1481 _.defaults( this.options, { 1477 1482 selection: [], 1478 library: {}, 1483 library: { 1484 uploadedTo: media.view.settings.post.id, 1485 orderby: 'menuOrder', 1486 order: 'ASC' 1487 }, 1479 1488 multiple: false, 1480 1489 state: 'library' 1481 1490 });