Skip to content

Commit

Permalink
FIX: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
girafffee committed Aug 6, 2024
1 parent a7816c1 commit cea085e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/post-type/meta/base-meta-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public function query( $form_id ) {
}
$form = get_post( $form_id );

if ( $form->post_parent ) {
// compatibility for preview the form
if ( $form && $form->post_parent ) {
$form_id = $form->post_parent;
}

Expand Down

0 comments on commit cea085e

Please sign in to comment.