Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove displayAtCheckout usage #26

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

derekashauer
Copy link
Contributor

@derekashauer derekashauer commented Feb 25, 2025

All Submissions:

Changes proposed in this Pull Request:

Resolves #24

Remove all usage of now deprecated displayAtCheckout and build form fields

How to test the changes in this Pull Request:

  1. Go to frontend testimonial submission form
  2. Submit with debug enabled
  3. No more deprecation notices!

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

Testimonial submission form fields restructured to no longer use deprecated displayAtCheckout()

Remove all usage of now deprecated displayAtCheckout and build form fields
}
?>
<div class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro_form_field pmpro_form_field-required pmpro_form_field-select', 'url' ) ); ?>">
<label for="url" class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro_form_label' ) ); ?>">
Copy link
Member

Choose a reason for hiding this comment

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

This should be for="testimonial_category"

@kimcoleman
Copy link
Member

Every field here needs an ID value = to its name value (or matching the label's "for" value.

* FIx inconsistent CSS class usage
* Addressed a11y issues with labels/ID and star selection
* Fixed text domains
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.

PMPro_Field::displayAtCheckout is deprecated in v3.4 +
2 participants