Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/18/2014 01:15:40 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Improvements to Blogs & capabilities:

  • Introduce bp_blogs_get_allowed_roles() to act as a blog-role whitelist
  • Introduce bp_get_current_blog_roles() to avoid including an admin-only file theme-side
  • Use these functions to clean-up the add_user_to_blog process in several ways:

More accurately match the member-to-blog relationship specification
No-subscriber users remains functionality intact
Allow extending of existing user-to-blog behavior

See #5749, #5819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r8781 r8942  
    370370        'per_page'          => 20,
    371371        'max'               => false,
    372         'user_id'           => bp_displayed_user_id(), // Pass a user_id to limit to only blogs this user has higher than subscriber access to
     372        'user_id'           => bp_displayed_user_id(), // Pass a user_id to limit to only blogs this user is a member of
    373373        'include_blog_ids'  => false,
    374374        'search_terms'      => $search_terms,          // Pass search terms to filter on the blog title or description.
Note: See TracChangeset for help on using the changeset viewer.