Last active
February 15, 2026 18:24
-
-
Save labboy0276/3ef81d630b1635b4f008e1e4a052d522 to your computer and use it in GitHub Desktop.
ACF Pro 5.12.6 Composer Patch to make PHP 8.3 Compliant.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/acf.php b/acf.php | |
| index d5d35e6..263e904 100644 | |
| --- a/acf.php | |
| +++ b/acf.php | |
| @@ -31,6 +31,24 @@ if ( ! class_exists( 'ACF' ) ) : | |
| /** @var array Storage for class instances. */ | |
| var $instances = array(); | |
| + /** @var acf_fields Dynamic property set in includes/fields.php */ | |
| + public $fields; | |
| + | |
| + /** @var acf_loop Dynamic property set in includes/loop.php */ | |
| + public $loop; | |
| + | |
| + /** @var acf_revisions Dynamic property set in includes/revisions.php */ | |
| + public $revisions; | |
| + | |
| + /** @var acf_validation Dynamic property set in includes/validation.php */ | |
| + public $validation; | |
| + | |
| + /** @var acf_form_front Dynamic property set in includes/forms/form-front.php */ | |
| + public $form_front; | |
| + | |
| + /** @var acf_admin_tools Dynamic property set in includes/admin/admin-tools.php */ | |
| + public $admin_tools; | |
| + | |
| /** | |
| * __construct | |
| * | |
| diff --git a/includes/fields/class-acf-field-google-map.php b/includes/fields/class-acf-field-google-map.php | |
| index 138611c..ee2aa08 100644 | |
| --- a/includes/fields/class-acf-field-google-map.php | |
| +++ b/includes/fields/class-acf-field-google-map.php | |
| @@ -4,6 +4,7 @@ if ( ! class_exists( 'acf_field_google_map' ) ) : | |
| class acf_field_google_map extends acf_field { | |
| + public $default_values; | |
| /* | |
| * __construct | |
| diff --git a/includes/fields/class-acf-field-group.php b/includes/fields/class-acf-field-group.php | |
| index 9d464bc..9604423 100644 | |
| --- a/includes/fields/class-acf-field-group.php | |
| +++ b/includes/fields/class-acf-field-group.php | |
| @@ -4,6 +4,7 @@ if ( ! class_exists( 'acf_field__group' ) ) : | |
| class acf_field__group extends acf_field { | |
| + public $have_rows; | |
| /* | |
| * __construct | |
| diff --git a/includes/fields/class-acf-field-oembed.php b/includes/fields/class-acf-field-oembed.php | |
| index d13470e..3f165d2 100644 | |
| --- a/includes/fields/class-acf-field-oembed.php | |
| +++ b/includes/fields/class-acf-field-oembed.php | |
| @@ -4,6 +4,8 @@ if ( ! class_exists( 'acf_field_oembed' ) ) : | |
| class acf_field_oembed extends acf_field { | |
| + public $width; | |
| + public $height; | |
| /* | |
| * __construct | |
| diff --git a/includes/forms/form-customizer.php b/includes/forms/form-customizer.php | |
| index 8186fad..b44b0c9 100644 | |
| --- a/includes/forms/form-customizer.php | |
| +++ b/includes/forms/form-customizer.php | |
| @@ -8,6 +8,9 @@ if ( ! class_exists( 'acf_form_customizer' ) ) : | |
| class acf_form_customizer { | |
| + public $preview_values; | |
| + public $preview_fields; | |
| + public $preview_errors; | |
| /* | |
| * __construct | |
| diff --git a/includes/forms/form-widget.php b/includes/forms/form-widget.php | |
| index f806a0c..5674176 100644 | |
| --- a/includes/forms/form-widget.php | |
| +++ b/includes/forms/form-widget.php | |
| @@ -14,6 +14,9 @@ if ( ! class_exists( 'acf_form_widget' ) ) : | |
| class acf_form_widget { | |
| + public $preview_values; | |
| + public $preview_reference; | |
| + public $preview_errors; | |
| /* | |
| * __construct | |
| diff --git a/includes/loop.php b/includes/loop.php | |
| index ff7d0c5..512bad0 100644 | |
| --- a/includes/loop.php | |
| +++ b/includes/loop.php | |
| @@ -8,6 +8,7 @@ if ( ! class_exists( 'acf_loop' ) ) : | |
| class acf_loop { | |
| + public $loops; | |
| /* | |
| * __construct | |
| diff --git a/includes/validation.php b/includes/validation.php | |
| index 4c08a82..24c95ee 100644 | |
| --- a/includes/validation.php | |
| +++ b/includes/validation.php | |
| @@ -8,6 +8,7 @@ if ( ! class_exists( 'acf_validation' ) ) : | |
| class acf_validation { | |
| + public $errors; | |
| /* | |
| * __construct | |
| diff --git a/pro/fields/class-acf-field-clone.php b/pro/fields/class-acf-field-clone.php | |
| index 4082605..a305aba 100644 | |
| --- a/pro/fields/class-acf-field-clone.php | |
| +++ b/pro/fields/class-acf-field-clone.php | |
| @@ -4,6 +4,8 @@ if ( ! class_exists( 'acf_field_clone' ) ) : | |
| class acf_field_clone extends acf_field { | |
| + public $cloning; | |
| + public $have_rows; | |
| /* | |
| * __construct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment