In bp_get_option(), check the buddypress()->site_options array first.

This is to prevent having to use get_blog_option() if we have already
fetched the option in question.

See #4913

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8188 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Blogs: Mirror a blog's various comment options to BP's blogmeta.

This commit mirrors the following blog options to BP's blogmeta:
- 'close_comments_for_old_posts'
- 'close_comment_days_old'
- 'thread_comments_depth'

These options will be used later in the new bp_blogs_comments_open()
function to determine whether a blog post's activity item should be
closed from commenting.  This is designed to prevent multiple calls
to switch_to_blog().

See #5130

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8189 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Blogs: Support post comment synchronization in the activity stream.

Previously, if a reply to a blog post was made in the activity stream,
the reply would only exist in the activity stream and not as a comment
for the blog post.

This commit:
- Adds a blog comment whenever an activity reply is made under a blog post activity entry
- Adds an activity comment to the blog post's activity entry whenever a blog comment is made
- Checks to see if the blog post is open for comments (whether manually closed or due to age) (see r8189) to determine whether the activity item can be replied to
- Handles content edit synchronization to either the post comment or the activity comment
- Handles deletion synchronization to a degree

See #5130

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8190 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Blogs: Tweak what happens when a post status is changed.

r8073 introduced bp_blogs_catch_transition_post_status() to determine
how blog posts are recorded in the activity stream.  However, blog
post edits are not accounted for.

This commit:
- Updates a blog post's activity item when a post is edited
- Mirrors a blog post's comment status to activitymeta for use with bp_blogs_comments_open() (see r8189)
- Removes the usage of bp_blogs_record_post() when a post has changed to an unpublished status.  bp_blogs_record_post() already fires on the 'delete_post' action, so this isn't necessary.  Instead, we remove the corresponding activity entry.

See #5333, #5130

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8191 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Introduce bp_activity_admin_get_activity_actions().

This function walks through all currently registered activity actions
and returns a flattened array of the activity actions.

Format returned is:

Array(
   'activity_update' => 'Posted a new status update',
   ...
)

See #5484

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8192 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Activity dashboard: Add 'action' column.

This commit adds an 'Action' column to the activity dashboard.  This
will give better context to the administrator when viewing the
dashboard.

Fixes #5484

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8193 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Activity dashboard: Check if activity item can be replied to.

If activity commenting is enabled for blog posts, in the activity
dashboard, we have to check whether or not the activity item can be
replied to.

This commit adds the class method - BP_Activity_List_Table::can_comment() -
to check the current activity item in the activity list table.

See #5130.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8194 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Clean up bp_update_to_2_0() and BP_Members_Admin class

Improve code formatting

props johnjamesjacoby

See #5374

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8195 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Remove the bp_get_signup_allowed() checks in Sign-ups management feature

- Create $wpdb->signups table even if sign-ups are not allowed on single blog config
- Display the UI to manage sign-ups even if signups are not allowed

This way, administrator who temporarly deactivated registrations will still be able to moderate the pending signups.

props johnjamesjacoby, boonebgorges

See #5374

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8196 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Rename user admin tabs to Profile and Extended Profile

This is more consistent with WP's core nomenclature, as well as BP's other
use of the phrase 'Extended Profile'.

Fixes #5363

Props modemlooper, imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8197 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Add a link to Registration settings in Sign-ups Administration screen

In case registration is disabled and no pending sign-ups were found display a link to the blog or network settings.

props imath, boonebgorges

See #5374

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8198 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't check buddypress()->site_options in bp_get_option()

This reverts the change in r8188. The check in site_options is intended to
provide a speed benefit, but it causes problems when not mirrored properly
in bp_update_option(). We'll take a closer look at this in a future release.

See #4913

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8199 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Cache the group invite count for a user.

This commit:
- Caches calls to BP_Groups_Member::get_invite_count_for_user()
- Invalidates the group invite count cache on various actions
- Adds a unit test

See #5414

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8200 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Use WP's comment depth setting to limit activity comment depth

Fixes #2768

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8201 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Messages: Reformat new message notifications.

This commit changes the single message notification link to go
directly to the message thread in question and not the message inbox.

When the message thread is viewed, new messages are marked as read.

Fixes #5479

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8202 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Bump version numbers to 2.0-beta1

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8203 cdf35c40-ae34-48e0-9cc9-0c9da1808c22