Media "Admin Sort" option is not working currently
-
Media “Admin Sort” option is not working currently for the grid view.
As far as I can track the issue – the WP Query that WordPress does to pull the attachments is correct, however once Backbone start to render the Attachments, it sorts them differently.
For example you can filter the order to random, and you can see while the page is loading, the elements get re-sorted live, after every sub-page is pulled:
add_filter('ajax_query_attachments_args', 'my_ajax_query_attachments_args', 99999); function my_ajax_query_attachments_args($query) { $query['order'] = array('ASC'); $query['orderby'] = array('rand'); return $query; }
- The topic ‘Media "Admin Sort" option is not working currently’ is closed to new replies.