Ticket #26587: 26587.diff
File 26587.diff, 883 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/media-models.js
1164 1164 'perPage': 'posts_per_page', 1165 1165 'menuOrder': 'menu_order', 1166 1166 'uploadedTo': 'post_parent', 1167 'status': 'post_status' 1167 'status': 'post_status', 1168 'include': 'post__in', 1169 'exclude': 'post__not_in' 1168 1170 }, 1169 1171 /** 1170 1172 * @static … … 1211 1213 props.orderby = defaults.orderby; 1212 1214 } 1213 1215 1216 _.each( [ 'include', 'exclude' ], function( prop ) { 1217 if ( props[ prop ] && ! _.isArray( props[ prop ] ) ) { 1218 props[ prop ] = [ props[ prop ] ]; 1219 } 1220 } ); 1221 1214 1222 // Generate the query `args` object. 1215 1223 // Correct any differing property names. 1216 1224 _.each( props, function( value, prop ) {