[wp-trac] [WordPress Trac] #23347: Theme fallbacks for post format meta data
WordPress Trac
noreply at wordpress.org
Mon Feb 18 19:23:00 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: has-patch |
-------------------------+------------------
Comment (by helen):
In [changeset:"23450"]:
{{{
#!CommitTicketReference repository="" revision="23450"
Output fallbacks / theme compat for post format metadata.
* Currently handles link, quote, image, gallery, audio, and video formats.
* `add_theme_support()` for a given post format is now an indicator that
the theme handles format-specific metadata.
* If no support for a given format is defined, fallback output will be
generated and hooked onto the_content if a post has metadata for that
format.
* Fallbacks attempt to be smart about not duplicating data already
appearing in the post content itself. Gallery is particularly liberal,
looking for any instance of the gallery shortcode in the content, not just
an exact match to the gallery shortcode defined in the format-specific
meta.
* Compat output defaults to being wrapped in a `div` with a class of
`post-format-content`.
Theme authors: please test and evaluate, keeping in mind that the goal is
to support user expectations of not losing format-specific data they've
entered in the admin when viewing the front-end of their site.
props wonderboymusic, beaulebens, helen. see #23347.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23347#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list