Skip to content

Commit b7f6a54

Browse files
committed
Prevent ACF compat loading if ACF class exists
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
1 parent 3cc02fe commit b7f6a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/compatibility/acf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
$acf_backwards_compatibility = apply_filters( 'pods_acf_backwards_compatibility', true ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
2222

23-
if ( $acf_backwards_compatibility ) {
23+
if ( $acf_backwards_compatibility && ! class_exists( 'ACF' ) ) {
2424
if ( ! function_exists( 'the_field' ) ) {
2525
/**
2626
* Backwards compatibility function for the_field() from ACF.

0 commit comments

Comments
 (0)