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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 4 06:06:51 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 mikeschinkel):

 Replying to [comment:20 Otto42]:
 > I'd prefer shortcodes for specific URLs that could be put into posts.
 Example:
 >
 > {{{
 > <img src="[homeurl]/wp-content/uploads/whatever.jpg" />
 > }}}
 >
 > We could have contenturl, pluginurl, homeurl, siteurl, etc. Each of
 these is a relatively simple single line function for a shortcode. It
 would serve to make the content less dependent on the absolute URL, but
 not too dependent on the shortcodes (since a simple search/replace of
 [homeurl] with the actual URL could fix up the content in the database).

 A big +1.

 Can I suggest we instead use an underscore as content_url, plugin_url,
 home_url, site_url, etc. for readability but more importantly for
 consistency with function names of the same use, i.e. #9008

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


More information about the wp-trac mailing list