Skip to content

Commit

Permalink
Fix error for order setting for new buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornett committed Dec 3, 2018
1 parent 91422d4 commit 4c79786
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -222,7 +222,7 @@ public function do_custom_order( $args ) {
$buttons = array_merge( $this->setting['order'], $buttons );
}
foreach ( $buttons as $key => $label ) {
if ( ! $this->setting['buttons'][ $key ] ) {
if ( empty( $this->setting['buttons'][ $key ] ) ) {
continue;
}
$value = ! empty( $this->setting['order'][ $key ] ) ? $this->setting['order'][ $key ] : 0;
Expand Down

0 comments on commit 4c79786

Please sign in to comment.