Skip to content

Commit e7ed8a3

Browse files
committed
Added slug and name to order by list
1 parent 8735000 commit e7ed8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/component/posts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function results() {
105105
}
106106

107107
if (isset($this->options['order_by']) &&
108-
! in_array($this->options['order_by'], ['post_id', 'admin_id', 'sort_order', 'parent', 'type', 'created_at', 'updated_at'])) {
108+
! in_array($this->options['order_by'], ['post_id', 'admin_id', 'sort_order', 'parent', 'type', 'created_at', 'updated_at', 'slug', 'name'])) {
109109
unset($this->options['order_by']);
110110
}
111111

0 commit comments

Comments
 (0)