diff --git a/includes/utils.php b/includes/utils.php index 1e53a57f9..607a07985 100644 --- a/includes/utils.php +++ b/includes/utils.php @@ -434,7 +434,13 @@ function excluded_meta() { */ function prepare_meta( $post_id ) { update_postmeta_cache( array( $post_id ) ); - $meta = get_post_meta( $post_id ); + $meta = get_post_meta( $post_id ); + + if ( false === $meta ) { + return array(); + } + + $meta = is_array( $meta ) ? $meta : array(); $prepared_meta = array(); $excluded_meta = excluded_meta();