[buddypress-trac] [BuddyPress] #5021: Shortcode contents don't display in non-standard BP 1.7 themes

buddypress-trac noreply at wordpress.org
Fri May 31 17:07:37 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 commit  |
-------------------------------------------+------------------

Comment (by johnjamesjacoby):

 The only thing to consider now is how specifically to handle shortcodes,
 and plugins that filter the content after priority 10:

 {{{
 add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop()
 }}}

 Since we hook theme compat in on loop_start (and are now no longer
 removing all filters from the_content) we're hoping that plugins choose to
 behave and only use priority 11 or higher when it's absolutely necessary.
 Another side effect of this, is that any shortcodes that any user might
 try to post, will always get rendered. Shortcodes do not integrate with
 capabilities, and most shortcodes I've seen assume that the user is some
 kind of trusted blog author, which isn't the case in !BuddyPress/bbPress.

 I think we'll still need to juggle all of 'the_content' filters, and then
 decide in what scenarios we want to allow shortcodes to be rendered, and
 specifically hook those cases into their respective content areas.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5021#comment:24>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list