[buddypress-trac] [BuddyPress] #5021: Shortcode contents don't display in non-standard BP 1.7 themes
buddypress-trac
noreply at wordpress.org
Thu May 30 07:23:30 UTC 2013
#5021: Shortcode contents don't display in non-standard BP 1.7 themes
------------------------------------+------------------
Reporter: sensibleplugins | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 1.8
Component: Core | Version: 1.7
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------
Comment (by johnjamesjacoby):
5021.5.patch works around recursion by setting
bp_set_theme_compat_active() to false when bp_replace_the_content() has
started. bp_do_theme_compat() checks in_the_loop(),
bp_is_theme_compat_active(), and a new function bp_is_template_included(),
to make sure we're not accidentally running theme-compat the_content
replacement on standard template files.
This should work with shortcodes, query_posts(), recursive calls to
the_content filters, etc... without the added $wp_query->post_count logic.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5021#comment:16>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list