[buddypress-trac] [BuddyPress] #2542: activity-meta in entry.php needs is_user_logged_in() around whole div...

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Jul 20 17:30:04 UTC 2010


#2542: activity-meta in entry.php needs is_user_logged_in() around whole div...
---------------------+------------------------------------------------------
 Reporter:  grimbog  |       Owner:                                     
     Type:  defect   |      Status:  new                                
 Priority:  normal   |   Milestone:  1.2.5                              
Component:  Core     |    Keywords:  activity-meta div is_user_logged_in
---------------------+------------------------------------------------------

Comment(by r-a-y):

 The problem with your suggested fix is some plugins might want their
 content publically available.

 Wrapping a is_user_logged_in() around the activity-meta <div> effectively
 blocks this functionality.

 An easy way to get rid of the activity-meta div if not logged in is using
 CSS.

 {{{
 div.activity-meta {display:none;}
 body.logged-in div.activity-meta {display:block !important;}
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2542#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list