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

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 5 14:27:55 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):

 Replying to [comment:28 caesarsgrunt]:
 > If you're opposed to an image specific shortcode, I'd agree that it
 might be a good idea instead to have a generic media one, since most of
 the attributes will be similar for all media.

 Not opposed to it, as such, I just wanted to make it more generic and
 useful for more than just media.

 I don't like shortcodes in general, because IMO they pollute the content
 with site and/or system specific bits. The content can be displayed on the
 website, or in a feed, or pulled out and merged into other bits... I'd
 just like it to remain relatively pure and capable of being displayed in
 different ways. Shortcodes lock the content into an implementation-
 specific system.

 But they do good things too, so while I think they're evil, I can see that
 they're a necessary evil.

 With an media specific shortcode, you're locking the content to that
 database and implementation specifically. If you move the content to
 another system, it ceases to work. Images don't show. Links get broken or
 are not there. Etc, etc..

 In other words, my problem with the original suggestion is that I think
 [image] is a worse thing to have in the database than <img src...>,
 because HTML has a defined meaning outside of the database and WordPress
 and is well understood across multiple types of systems, but shortcodes
 only work in WordPress, with this specific code, with this specific
 theme/plugin, etc.

 This may be a problem with no perfect solution, I grant you, but I'd like
 to make any content produced by the core still have some form of meaning
 and to display at least semi-properly even when the shortcodes are not
 processed.

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


More information about the wp-trac mailing list