[wp-trac] [WordPress Trac] #23347: Theme fallbacks for post format meta data

WordPress Trac noreply at wordpress.org
Sun Feb 17 02:54:27 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 beaulebens):

 [http://core.trac.wordpress.org/attachment/ticket/23347/23347.3.diff
 23347.3] makes a few modifications/additions to .2:
 * Tries to detect "duplicate" content; where the user has already entered
 the format-specific data within the_content, but has also filled out the
 specific fields. In this case we always trust the user to have entered
 what they want to appear in the_content
 * Adds a check after the main switch in {{{post_formats_compat}}} so that
 if no {{{$format_content}}} has been created, then we return
 {{{$content}}} without modifying it (adding tags/classes); basically only
 modifying things when we explicitly have something to offer
 * Uses {{{stristr}}} rather than {{{preg_match}}} for the image check,
 since if the URL is there at all, let's just assume the user knows what
 they're doing
 * Beefs up the gallery detection, which was previously only checking the
 first shortcode encountered. Now checks all shortcodes and bails if any of
 them are a gallery.

 {{{get_post_format_meta()}}} has been moved to #19570, so I'm leaving it
 out of this diff.

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


More information about the wp-trac mailing list