Changeset 25720
- Timestamp:
- 10/07/2013 07:01:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-editor.js
r24777 r25720 237 237 238 238 // Mark the `orderby` override attribute. 239 if( undefined !== attrs.orderby ) 240 attrs._orderByField = attrs.orderby; 241 239 242 if ( 'rand' === attrs.orderby ) 240 243 attrs._orderbyRandom = true; … … 284 287 285 288 // Check if the gallery is randomly ordered. 289 delete attrs.orderby; 290 286 291 if ( attrs._orderbyRandom ) 287 292 attrs.orderby = 'rand'; 293 else if ( attrs._orderByField && attrs._orderByField != 'rand' ) 294 attrs.orderby = attrs._orderByField; 295 288 296 delete attrs._orderbyRandom; 297 delete attrs._orderByField; 289 298 290 299 // If the `ids` attribute is set and `orderby` attribute
Note: See TracChangeset
for help on using the changeset viewer.