[wp-trac] [WordPress Trac] #24291: Tweaks to Image post format UI

WordPress Trac noreply at wordpress.org
Sun May 26 02:28:08 UTC 2013


#24291: Tweaks to Image post format UI
----------------------------+--------------------
 Reporter:  markjaquith     |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  high            |   Milestone:  3.6
Component:  Post Formats    |     Version:  trunk
 Severity:  major           |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------

Comment (by jakemgold):

 Trying to follow the various image post format UI threads and branches,
 and picking this one. I think there are still some serious usability
 issues here.

 First, it seems to me we should follow the example of the "Featured Image"
 field. Once an image is provided, hide the uploader / HTML field, subbing
 it with a "Remove image" link that take discards the preview and replaces
 it with the fields.

 Second, it seems to me if we're going to instantly show previews for
 uploaded media (sans saving), we should do the same for image URL / HTML.
 I realize this might be a bit heavy, but with some balance tags magic /
 sanitizing (which is already being being addressed for this field), we can
 can show the output from the free form HTML field when the field loses
 focus.

 Finally, I know it's been raised elsewhere, but I'm not sure I even get
 the logic behind a free form HTML field (although I *do* get allowing a
 URL for an image), and I tend to lean toward strongly believing this is a
 bad idea, while being open to someone explaining the use case.

 As theme developers, the free form HTML - which tolerates embedded links
 that override the click through field - makes it much harder than it
 should be to reliably pull the raw data out of this post format for
 fancier / alternate presentation of the content (in addition to making
 basic output, as it is now, somewhat heavy when HTML is provided). More
 importantly, it just seems bizarre to me that - in an image post format -
 I can just write something like "<strong>hello world!</strong>"... which
 is accepted and works. Heck, why don't we just call it a "free for all"
 post format?

 Might there be uses cases for raw HTML in an image post format (struggling
 as I am to think of them)? I guess. But that's why we have hooks and plug-
 ins.

 Again - tried to read through all the threads on this subject, so forgive
 me if I'm covering old ground.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24291#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list