[wp-trac] [WordPress Trac] #25335: Twenty Thirteen: plugins cannot filter `the_content` for Gallery post format on index views
WordPress Trac
noreply at wordpress.org
Thu Mar 27 21:49:25 UTC 2014
#25335: Twenty Thirteen: plugins cannot filter `the_content` for Gallery post
format on index views
-----------------------------+------------------------------
Reporter: RDall | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 3.6
Severity: normal | Resolution:
Keywords: close has-patch | Focuses:
-----------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: close needs-patch => close has-patch
Comment:
[attachment:25335.diff] seems like a valid patch for most of the social
sharing plugins, not just for Jetpack.
A workaround:
{{{
function apply_the_content_to_get_post_gallery_25335( $gallery ) {
if ( ! is_single() ) {
$gallery = apply_filters( 'the_content', $gallery );
}
return $gallery;
}
add_filter( 'get_post_gallery',
'apply_the_content_to_get_post_gallery_25335' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25335#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list