Changeset 31406
- Timestamp:
- 02/10/2015 10:53:34 PM (10 years ago)
- Location:
- trunk/src/wp-includes/js/media
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media/models.js
r31399 r31406 1231 1231 // Determine which page to query. 1232 1232 if ( -1 !== args.posts_per_page ) { 1233 args.paged = Math. floor( this.length / args.posts_per_page ) + 1;1233 args.paged = Math.round( this.length / args.posts_per_page ) + 1; 1234 1234 } 1235 1235 -
trunk/src/wp-includes/js/media/models/query.js
r31385 r31406 139 139 // Determine which page to query. 140 140 if ( -1 !== args.posts_per_page ) { 141 args.paged = Math. floor( this.length / args.posts_per_page ) + 1;141 args.paged = Math.round( this.length / args.posts_per_page ) + 1; 142 142 } 143 143
Note: See TracChangeset
for help on using the changeset viewer.