[buddypress-trac] [BuddyPress] #3261: BP options get/update wrapper functions

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue May 31 22:49:13 UTC 2011


#3261: BP options get/update wrapper functions
---------------------------+-----------------
  Reporter:  boonebgorges  |      Owner:
      Type:  defect        |     Status:  new
  Priority:  normal        |  Milestone:  1.3
 Component:  Core          |    Version:
Resolution:                |   Keywords:
---------------------------+-----------------

Comment (by boonebgorges):

 bp-pages data is stored differently from other site options. It should be
 in a sitemeta called bp-pages, which is a multi-d array that should look
 something like:
 [2] => array( 'members' => 56, 'groups' => 58 ),
 [3] => array( 'members' => 6, 'groups' => 8 ),
 etc, where 2 and 3 are blog ids. If this is not working properly, it's a
 bug in my implementation.

 Other settings are stored in regular sitemeta or options tables.

 This should be regularized, so that all settings are done the same way. If
 we want to filter keys only, we'll have to move all settings out of
 sitemeta. This will break backward compatibility, but only in cases where
 people were accessing BP sitewide settings. This should *not* happen very
 frequently, because they are loaded into the $bp global at loadtime. In
 the name of consistency with usermeta, it's probably worth examining this
 course further, which I will do when I get back from vacation, unless
 someone beats me to it.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3261#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list