Skip to content

Conversation

@cbravobernal
Copy link
Contributor

This PR works on form-customizer.php file. This one seems to be somewhat legacy, but tests are passing both with the old and the refactor code.

The class name change should not have side effects, as is only called in this file. Still may be "risky".

Anyway, feel free to leave feedback. I hope I didn't miss anything.

@kraftbj kraftbj self-requested a review March 24, 2025 16:30
@kraftbj kraftbj added this to the 6.5.0 milestone Mar 24, 2025
Copy link
Contributor

@kraftbj kraftbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All in all looks good. Made a couple of minor suggestions.

* It manages preview values, fields, and errors for the customizer interface, and handles
* saving ACF data when customizer changes are applied.
*
* @package Advanced Custom Fields
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @package Advanced Custom Fields
* @package wordpress/secure-custom-fields

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

* @param array $new_instance (array) widget settings.
* @param array $old_instance (array) widget settings.
* @param object $widget (object) widget info.
* @return array $instance Widget settings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spacing seems off to me.

Suggested change
* @return array $instance Widget settings.
*
* @return array $instance Widget settings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

*
* @param $customizer (object)
* @return $value (mixed)
* @param Object $customizer WordPress object.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param Object $customizer WordPress object.
* @param WP_Customize_Manager $customizer Customizer object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

*
* @param $customizer (object)
* @return n/a
* @param Object $customizer WordPress object.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param Object $customizer WordPress object.
* @param WP_Customize_Manager $customizer Customizer object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@cbravobernal cbravobernal force-pushed the refactor/form-customizer branch from efcc8ae to 843f80e Compare March 25, 2025 16:44
@kraftbj kraftbj merged commit 694fcc6 into WordPress:trunk Mar 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants