[wp-meta] [Making WordPress.org] #2189: Forums: Detect non-image URLs in <img> tags
Making WordPress.org
noreply at wordpress.org
Sat Oct 29 10:31:44 UTC 2016
#2189: Forums: Detect non-image URLs in <img> tags
----------------------------+------------------
Reporter: SergeyBiryukov | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Support Forums | Resolution:
Keywords: |
----------------------------+------------------
Description changed by SergeyBiryukov:
Old description:
> With the upgrade to bbPress 2.x, it's now possible to insert images
> directly into support forum posts.
>
> However, most new forum members incorrectly use `<img>` tags for web
> pages instead of images, which results in a broken image in their post. A
> recent example:
> {{{
> <img src="https://gyazo.com/c57448863a8cd682d3bc6ba718506547"
> alt="Shipping Options" />
> }}}
> The URL here is a web page with an image, but not the an image itself.
>
> This should be more user-friendly. We could probably detect that the URL
> provided for `src` is not an image and automatically convert the code to
> a regular link in that case:
> {{{
> <a href="https://gyazo.com/c57448863a8cd682d3bc6ba718506547">Shipping
> Options</a>
> }}}
New description:
With the upgrade to bbPress 2.x, it's now possible to insert images
directly into support forum posts.
However, most new forum members incorrectly use `<img>` tags for web pages
instead of images, which results in a broken image in their post. A recent
example:
{{{
<img src="https://gyazo.com/c57448863a8cd682d3bc6ba718506547"
alt="Shipping Options" />
}}}
The URL here is a web page with an image, but not the image itself.
This should be more user-friendly. We could probably detect that the URL
provided for `src` is not an image and automatically convert the code to a
regular link in that case:
{{{
<a href="https://gyazo.com/c57448863a8cd682d3bc6ba718506547">Shipping
Options</a>
}}}
--
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2189#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list