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

Don't strip line breaks in USER FIELDS #3142

Open
kimwhite opened this issue Sep 18, 2024 · 1 comment · May be fixed by #3313
Open

Don't strip line breaks in USER FIELDS #3142

kimwhite opened this issue Sep 18, 2024 · 1 comment · May be fixed by #3313

Comments

@kimwhite
Copy link
Contributor

Is your feature request related to a problem? Please describe.
If you create a "Text Area" field to collect long form information, like a bio, breaks are respected when viewing on back end or edit profile, but on the Directory or with a [pmpro_member] Shortcode, all spacing is stripped.

Describe the solution you'd like
When calling a User Field display with line breaks.

Screenshot 2024-09-18 at 4 31 27 PM Screenshot 2024-09-18 at 4 32 28 PM Screenshot 2024-09-18 at 4 35 07 PM Screenshot 2024-09-18 at 4 34 40 PM
@ideadude
Copy link
Member

It seems adding wpautop (but probably not escaping with wp_kses_post until actually echo'd as was done in the linked PR) should be the default.

It also seems folks may want to disable this and/or have another way to control how the content is escaped and output.

Let's research how other fields and forms plugins do this... ACF, Pods, WS Forms, WP Forms, GravityForms, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment