Skip to content

Commit

Permalink
Fixed a bug that threw a notice when a Flexible Layout where used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miika Arponen committed Oct 25, 2018
1 parent 9d50cae commit aebf963
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.14.4] - 2018-10-25

### Fixed
- A bug that threw a notice when a Flexible Layout where used.

## [1.14.3] - 2018-10-18

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: ACF Codifier
Plugin URI: https://github.com/devgeniem/acf-codifier
Description: A helper class to make defining ACF field groups and fields easier in the code.
Version: 1.14.3
Version: 1.14.4
Author: Miika Arponen / Geniem Oy
Author URI: https://geniem.fi
License: GPL-3.0
Expand Down
2 changes: 1 addition & 1 deletion src/Field/Groupable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function export( $register = false ) {
unset( $obj['filters'] );

// Allow hide label functionality for Groupables if they are an instance of Field
if ( $register && $this->hide_label && $this instanceof \Geniem\ACF\Field ) {
if ( $register && $this instanceof \Geniem\ACF\Field && $this->hide_label ) {
\Geniem\ACF\Codifier::hide_label( $this );
}

Expand Down

0 comments on commit aebf963

Please sign in to comment.