Skip to content

Commit

Permalink
Add default value when retrieving option
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobattocchi committed Mar 22, 2024
1 parent 98b699a commit e36463b
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 @@ -293,7 +293,7 @@ function duplicate_post_copy_post_taxonomies( $new_id, $post ) {
$post_taxonomies[] = 'post_format';
}

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

0 comments on commit e36463b

Please sign in to comment.