diff --git a/admin-functions.php b/admin-functions.php index 5d365af51..04fc2c3cd 100644 --- a/admin-functions.php +++ b/admin-functions.php @@ -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 = []; }