Skip to content

Commit

Permalink
fix filter when not added
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Aug 6, 2020
1 parent aad2a05 commit 2439851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/class-custom-permalinks-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private function exclude_custom_permalinks( $post )
$check_availability = true;
} elseif ( '__true' === $exclude_post_types ) {
$check_availability = true;
} elseif ( $exclude_posts ) {
} elseif ( is_bool( $exclude_posts ) && $exclude_posts ) {
$check_availability = true;
} else {
$check_availability = false;
Expand Down

0 comments on commit 2439851

Please sign in to comment.