Skip to content

Commit

Permalink
Avoid showing hidden courses when toggled off in the Courses block. I…
Browse files Browse the repository at this point in the history
…t's boolean false in this case but also adding explicit empty.
  • Loading branch information
brianhogg committed Jul 16, 2024
1 parent 0b22a85 commit 9f1f107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/shortcodes/class.llms.shortcode.courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function get_tax_query() {
}

$hidden = $this->get_attribute( 'hidden' );
if ( 'no' === $hidden ) {
if ( 'no' === $hidden || false === $hidden || '' === $hidden ) {

$terms = wp_list_pluck(
get_terms(
Expand Down

0 comments on commit 9f1f107

Please sign in to comment.