Making WordPress.org

Opened 7 years ago

Last modified 11 months ago

#3149 reviewing enhancement

Support Forums: Consider disabling wptexturize() in forum posts

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by:
Milestone: Priority: high
Component: Support Forums Keywords:
Cc:

Description

When submitting a post on the forums, some (most?) authors don't bother marking their code snippets with backticks, resulting in inappropriate "fancy" quotes: <script type=»text/javascript»>…</script>.

This could be worked around by disabling wptexturize() in forum posts. People come to the forums for solutions, not for nice typography :)

Change History (8)

This ticket was mentioned in Slack in #forums by clorith. View the logs.


4 years ago

#2 @Clorith
4 years ago

  • Priority changed from normal to high

I tend to agree with @SergeyBiryukov here, that folks don't come for the pretty typography inside forum replies, and that the simplest solution is to disable texturize for forum posts. This may have folks breaking their sites in some scenarios if they copy-paste from the forums (which is obviously not something we want to have happen).

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


4 years ago

#4 @tellyworth
4 years ago

  • Owner set to dd32
  • Status changed from new to reviewing

#5 @dd32
4 years ago

I'm not too thrilled about the idea of disabling texturize, but I'm also not thrilled at broken code samples.

that folks don't come for the pretty typography inside forum replies

I agree with this, but I don't think we should reduce typographical details unless it's the only option. WordPress was built on the idea of typography and keeping with that as a base expectation feels like a worthwhile use of our time.

I think an alternative here would be to auto-wrap code similar to how pastes are auto-wrapped #2107 (That's currently for pastes >= 1000 chars or >= 10 lines)

Perhaps #2107 could be updated to also wrap pastes of code-like text? Or it could be done on save to wrap any code-like text that's not already wrapped?

Code also gets typed, and not pasted, although I question just how much that is really an issue, if someone is comfortable typing HTML/CSS/JS/PHP they're probably going to be aware to code-wrap it.

#6 @Clorith
4 years ago

What does texturize do for us in the forum sense (genuine question, the only thing I can think of are the pretty quote symbols?)

I worry about doing too much auto-wrapping, the more of it that's implemented the easier it is to wrap the wrong stuff by accident, since it's awkward to read regular text if it ends up wrapped (from my perspective at least)

#7 @dd32
4 years ago

What does texturize do for us in the forum sense (genuine question, the only thing I can think of are the pretty quote symbols?)

Pretty much that, there's a few other small things but that would probably never be noticed. Quotes are important as anything else though.

I worry about doing too much auto-wrapping, the more of it that's implemented the easier it is to wrap the wrong stuff by accident

I agree with you there, but there's a point where one should consider the contents that's being wrapped, HTML/JS/CSS/PHP are very "not-human-language looking" and have a syntax that's clearly defined. Matching paragraphs that are code-like shouldn't be too difficult.

since it's awkward to read regular text if it ends up wrapped (from my perspective at least)

I think that's from most peoples perspective :)

Perhaps it's time to consider a minimal gutenberg editor (if it's at that point yet) for replies, to give the WYSIWYG experience.

#8 @dd32
11 months ago

  • Owner dd32 deleted

Is this still valid with the Block Editor in the support forums?

Note: See TracTickets for help on using tickets.