[wp-trac] [WordPress Trac] #11394: Image shortcode

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 5 22:39:36 UTC 2010


#11394: Image shortcode
-----------------------------+----------------------------------------------
 Reporter:  caesarsgrunt     |       Owner:                          
     Type:  feature request  |      Status:  new                     
 Priority:  normal           |   Milestone:  3.1                     
Component:  Media            |     Version:  2.9                     
 Severity:  normal           |    Keywords:  needs-patch dev-feedback
-----------------------------+----------------------------------------------

Comment(by Otto42):

 Okay, the difference here is that I don't see any of those as real
 "problems".

 There is fundamentally no real difference between [image align=right
 url=whatever] and <img style="align:right;" src="whatever" />. They are
 both amenable to machine creation and parsing. They both mean the same
 thing. Except that the HTML way works without further processing power
 being applied to it.

 If you want to scan through posts and recognize faulty images to deal with
 trashed ones, then you can do so without a shortcode. Merely stick a
 class="attachment-123" on every image. Have a filter on the content look
 for images with that attachment class, and then remove the images which
 have been trashed. It's practically the same code, except you're using a
 regexp instead of a shortcode (which get found by regexps anyway).

 You're wanting to change the way images are held in posts, and then build
 image tags. I'd rather you simply attacked the problem directly instead of
 coming at it sideways. There's better ways to solve all the "problems" you
 mention without breaking the current content model.

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


More information about the wp-trac mailing list