[wp-trac] [WordPress Trac] #11394: Image shortcode
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 3 22:32:01 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):
Instead of using an image specific shortcode, 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).
Plus, it's simple enough to be applicable to more than just the
image/upload handling functions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11394#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list