Skip to content

Commit

Permalink
fix the validate_file error in the register_post_meta_from_defs function
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenslack committed Dec 12, 2023
1 parent 8e5d230 commit 8394367
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8394367

Please sign in to comment.