From 908e79c41b7f1ee40714b85a9b977e5fd00a07ce Mon Sep 17 00:00:00 2001 From: David Wood Date: Mon, 22 Oct 2018 15:47:09 -0400 Subject: [PATCH] Resolved bug with `render_flex_field()` not having a default for group and then not passing group onto `get_flex_field()`. --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 1113820..7017d86 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -11,8 +11,8 @@ * @param string $name * @param string $group */ -function render_flex_field( $name, $group ) { - $field = get_flex_field( $name ); +function render_flex_field( $name, $group = 'default' ) { + $field = get_flex_field( $name, $group ); if ( $field && is_object( $field ) && method_exists( $field, 'render' ) ) { $field->render(); }