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

Post Content form field missing closing div #1469

Open
aineland opened this issue Aug 2, 2024 · 0 comments
Open

Post Content form field missing closing div #1469

aineland opened this issue Aug 2, 2024 · 0 comments

Comments

@aineland
Copy link

aineland commented Aug 2, 2024

Version
Wp User Frontend 4.0.9

We found an issue with the Post content form field missing a closing div which results in breaking the layout when inserting post forms on a page.

The issue is in wp-user-frontend/includes/Fields/Form_Field_Post_Content.php in the render function.

From line 38:
<?php if ( in_array( $field_settings['rich'], [ 'yes', 'teeny' ] ) ) { ?> <div class="wpuf-fields wpuf-rich-validation <?php printf( 'wpuf_%s_%s', esc_attr( $field_settings['name'] ), esc_attr( $form_id ) ); ?>" data-type="rich" data-required="<?php echo esc_attr( $field_settings['required'] ); ?>" data-id="<?php echo esc_attr( $field_settings['name'] ) . '_' . esc_attr( $form_id ); ?>" data-name="<?php echo esc_attr( $field_settings['name'] ); ?>"> <?php } else { ?> <div class="wpuf-fields"> <?php } ?>

There is an opening <div> but it never closes in the render() function which breaks the layout.

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

No branches or pull requests

1 participant