Skip to content

Commit

Permalink
Fix pod config data passed into pods_meta_default_box_title to ensure…
Browse files Browse the repository at this point in the history
… it’s not a Pods() object
  • Loading branch information
sc0ttkclark committed Sep 19, 2023
1 parent eea8c02 commit 857e331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/admin/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
}

/** This filter is documented in classes/PodsMeta.php */
$title = apply_filters( 'pods_meta_default_box_title', $title, $pod, $fields, $pod->pod_data['type'], $pod->pod );
$title = apply_filters( 'pods_meta_default_box_title', $title, $pod->pod_data, $fields, $pod->pod_data['type'], $pod->pod );
?>
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
<div id="pods-meta-box" class="postbox" style="">
Expand Down
2 changes: 1 addition & 1 deletion ui/forms/type/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
}

/** This filter is documented in classes/PodsMeta.php */
$title = apply_filters( 'pods_meta_default_box_title', $title, $pod, $fields, $pod->pod_data['type'], $pod->pod );
$title = apply_filters( 'pods_meta_default_box_title', $title, $pod->pod_data, $fields, $pod->pod_data['type'], $pod->pod );
?>
<div id="pods-meta-box-<?php echo esc_attr( sanitize_title( $group['label'] ) ); ?>" class="postbox">
<?php PodsForm::render_postbox_header( $title ); ?>
Expand Down

0 comments on commit 857e331

Please sign in to comment.