Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit b87bf31

Browse files
1 parent a5d7981 commit b87bf31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/classes/models/custom_post/setting.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ public function get_settings( $target ) {
319319
$setting_details = $assets->get_setting_details( $target );
320320
$settings = [];
321321
foreach (
322-
$this->list_data( true, null, 1, [
323-
'is_valid' => 1,
324-
], [
325-
'priority' => 'ASC',
326-
] )['data'] as $data
322+
$this->get_list_data( function ( $query ) {
323+
/** @var \WP_Framework_Db\Classes\Models\Query\Builder $query */
324+
$query->where( 'is_valid', 1 )
325+
->order_by( 'priority' );
326+
} )['data'] as $data
327327
) {
328328
$options = [];
329329
foreach ( $this->get_setting_list() as $key => $name ) {

0 commit comments

Comments
 (0)