Skip to content

Commit

Permalink
Resolved bug with render_flex_field() not having a default for grou…
Browse files Browse the repository at this point in the history
…p and then not passing group onto `get_flex_field()`.
  • Loading branch information
dfwood committed Oct 22, 2018
1 parent 62defdc commit 908e79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 908e79c

Please sign in to comment.