Skip to:
Content

BuddyPress.org

Ticket #8890: 8890-bp-blogs-functions.diff

File 8890-bp-blogs-functions.diff, 1.3 KB (added by viralsampat, 3 years ago)
  • src/bp-blogs/bp-blogs-functions.php

    diff --git a/src/bp-blogs/bp-blogs-functions.php b/src/bp-blogs/bp-blogs-functions.php
    index d88b00f6e..1a4797b8f 100644
    a b function bp_blogs_get_blogs( $args = '' ) { 
    9595 *     @type array  $site_id  The network site ID to use.
    9696 * }
    9797 * @return bool
     98 *
     99 * @global wpdb $wpdb WordPress database object.
    98100 */
    99101function bp_blogs_record_existing_blogs( $args = array() ) {
    100102        global $wpdb;
    add_action( 'bp_activity_post_type_comment', 'bp_blogs_comment_sync_activity_com 
    857859 * @param int         $user_id The ID of the user.
    858860 * @param string|bool $role    User's WordPress role for this blog ID.
    859861 * @param int         $blog_id Blog ID user is being added to.
     862 *
     863 * @global wpdb $wpdb WordPress database object.
    860864 */
    861865function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = 0 ) {
    862866        global $wpdb;
    function bp_blogs_get_allowed_roles() { 
    932936 *
    933937 * @param int $user_id ID of the user whose blog is being removed.
    934938 * @param int $blog_id Optional. ID of the blog being removed. Default: current blog ID.
     939 *
     940 * @global wpdb $wpdb WordPress database object.
    935941 */
    936942function bp_blogs_remove_user_from_blog( $user_id, $blog_id = 0 ) {
    937943        global $wpdb;