From 83943679891dddda81ce89c46de85f4c454cbd19 Mon Sep 17 00:00:00 2001 From: Steven Slack Date: Tue, 12 Dec 2023 14:44:03 -0500 Subject: [PATCH] fix the validate_file error in the register_post_meta_from_defs function --- src/meta.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/meta.php b/src/meta.php index eb05e2c3..a49d51a9 100644 --- a/src/meta.php +++ b/src/meta.php @@ -135,9 +135,7 @@ function register_meta_helper( function register_post_meta_from_defs(): void { // Ensure the config file exists. $filepath = dirname( __DIR__ ) . '/config/post-meta.json'; - if ( ! file_exists( $filepath ) - || 0 !== validate_file( $filepath ) - ) { + if ( ! validate_path( $filepath ) ) { return; }