[wp-trac] [WordPress Trac] #23347: Theme fallbacks for post format meta data
WordPress Trac
noreply at wordpress.org
Fri Feb 1 14:27:23 UTC 2013
#23347: Theme fallbacks for post format meta data
-------------------------+------------------
Reporter: helen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Template | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------
Comment (by beaulebens):
I realized I missed a field in the Quote format, with all the mess around
it :)
In the [http://f.cl.ly/items/1t1H1Y0w0g1d2p1N1p0r latest mocks], there are
the following fields:
* Quote (the actual quote)
* Who said (source name)
* Where did they say this? (source URL? I think?)
* Comment (my commentary on the quote)
If we formalize the "Where did they say this" to be "URL to source" and
only allow a URL (which is what I think we should do), then we can use
that directly in the cite="" attribute on the <blockquote>.
{{{
<div class="format-quote-quotation">
<blockquote cite="{$_format_url}">{$post_content}</blockquote>
<div class="format-quote-source"><a
href="{$_format_url}">{$_format_source}</a></div>
</div> . "\n\n"
{$_format_commentary}
}}}
(change is $url => $_format_url, to use the standardized meta field, and
wrap the _format_source in a link to _format_url, since the cite attribute
isn't actually exposed in most (any?) user agents)
If the "Who said" field is indeed the name of a person, then HTML5
dictates we cannot use the <cite> tag around it. If it was the name of a
"text" (document, script, some body of work) then we could wrap it in a
<cite>. Annoyingly, pre-HTML5 it would have been fine to wrap whatever was
entered in this field with <cite>, which would have given nice clean
markup.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23347#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list