Skip to content

Commit 99fe69f

Browse files
author
Miika Arponen
committed
Moved the field registration from acf/init back to wp_loaded as it apparently causes problems in some cases.
1 parent 3fea291 commit 99fe69f

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.15.1] - 2019-02-19
8+
9+
### Changed
10+
- Moved the field registration from `acf/init` back to `wp_loaded` as it apparently causes problems in some cases.
11+
712
## [1.15.0] - 2019-02-18
813

914
### Added

plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: ACF Codifier
44
Plugin URI: https://github.com/devgeniem/acf-codifier
55
Description: A helper class to make defining ACF field groups and fields easier in the code.
6-
Version: 1.15.0
6+
Version: 1.15.1
77
Author: Miika Arponen / Geniem Oy
88
Author URI: https://geniem.fi
99
License: GPL-3.0

src/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ public function deactivate() {
481481
*/
482482
public function register() {
483483
if ( function_exists( 'acf_add_local_field_group' ) ) {
484-
\add_action( 'acf/init', function() {
484+
\add_action( 'wp_loaded', function() {
485485
$exported = $this->export( true );
486486

487487
\acf_add_local_field_group( $exported );

0 commit comments

Comments
 (0)