Skip to content

Commit

Permalink
fix(admin-functions): allow empty or null
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-sumner committed Feb 7, 2024
1 parent 98937b6 commit 45955fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function duplicate_post_copy_post_taxonomies( $new_id, $post ) {
}

$taxonomies_blacklist = get_option( 'duplicate_post_taxonomies_blacklist' );
if ( $taxonomies_blacklist === '' ) {
if ( empty( $taxonomies_blacklist ) ) {
$taxonomies_blacklist = [];
}
if ( intval( get_option( 'duplicate_post_copyformat' ) ) === 0 ) {
Expand Down

0 comments on commit 45955fc

Please sign in to comment.