Skip to content

Commit 62b181b

Browse files
committed
prevent php notices for "sort"
1 parent 44ea615 commit 62b181b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/taxonomies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ function cptui_manage_taxonomies() {
11551155
],
11561156
],
11571157
];
1158-
$selected = isset( $current ) ? disp_boolean( $current['sort'] ) : '';
1158+
$selected = ( isset( $current ) && ! empty( $current['sort'] ) ) ? disp_boolean( $current['sort'] ) : '';
11591159
$select['selected'] = ! empty( $selected ) ? $current['sort'] : '';
11601160
echo $ui->get_select_input( [
11611161
'namearray' => 'cpt_custom_tax',

0 commit comments

Comments
 (0)