[wp-trac] [WordPress Trac] #11394: Image shortcode
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 9 17:05:53 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 caesarsgrunt):
Replying to [comment:37 Otto42]:
> Ugh, absolutely not. Caption is separate from the image for a reason,
and it should stay that way.
Just to be clear : I wasn't suggesting that the caption and the image
necessarily be merged, I was just answering sbressler's question by
pointing out that (a) there are already duplicated attributes; this
wouldn't be something new introduced by an image shortcode, and (b) the
only way of avoiding duplicate attributes altogether is to merge the
caption and image tags. I didn't suggest that this actually be done.
> Look, the image is just the image. But the caption is the box
surrounding the image. They are separate in style and display and
everything else. The caption shortcode surrounds the image because that's
the way it works on the page itself.
Even if you merged the two shortcodes, the HTML output would be the same
as it is currently.
> If I was to simply delete all shortcodes, then I would still want my img
html to be in there. Remember, post content is not confined to being
displayed on the website. It's also in feeds, it can be seen in Google
Reader, it could be pulled into other things... Shortcodes violate this
principle of one-content-multiple-displays, but they tend to do so in a
minor and manageable way. If we expand shortcodes to actually *being*
content, then we change that dynamic.
Is the content of the post, as in the database, shown straight in feeds
without being parsed at all? If it's parsed anyway then being shown in
feeds isn't different from being shown on the site - but I don't actually
know whether it is or not. (Out of interest, if it's not, what happens
about embedded videos, galleries, etc?)
Why would you simply delete all shortcodes? Obviously, if you delete them,
then what they represent won't be there anymore. Do you want your image
tags to still be there if you delete all HTML too? If you remove all forms
of formatting so you just have plain text? Where do you draw the
line?[[BR]]
Besides, there is already a [gallery] shortcode. If you delete it; the
images it represents won't be shown anymore. Why's that OK, when a
shortcode for individual images isn't?
> I'm -1 to this ticket now, if we're talking about making the media
handled by a shortcode. I want my content to be at least mostly free of
being generated by the WordPress core code. I'd rather not have to process
it through WordPress just to make it capable of being displayed elsewhere.
Maybe we should have an option to disable the shortcode - enable it for
normal users who are more concerned about ease of use and the enhanced
feature set which it helps to enable, and allow advanced users who are
more concerned about direct data portability without using an exporter to
disable the shortcode. What do you think of that concept?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11394#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list