Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
Fixed bug in ACF4 affecting $version parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcondon committed Aug 22, 2018
1 parent fb92ad0 commit 414d376
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions acf-FIELD-NAME/acf-FIELD-NAME.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ function __construct() {
* @date 17/02/2016
* @since 1.0.0
*
* @param $version (int) major ACF version. Defaults to 4
* @param $version (int) major ACF version. Defaults to false
* @return void
*/

function include_field( $version = 4 ) {
function include_field( $version = false ) {

// support empty $version
if( !$version ) $version = 4;


// load textdomain
load_plugin_textdomain( 'TEXTDOMAIN', false, plugin_basename( dirname( __FILE__ ) ) . '/lang' );
Expand Down

0 comments on commit 414d376

Please sign in to comment.