Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 05:35:55 AM (8 years ago)
Author:
boonebgorges
Message:

Use new groups_get_group() syntax throughout BP.

See #5451.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-attachments.php

    r11068 r11091  
    5656                // Fix for HTTPS.
    5757                if ( 'baseurl' === $key && is_ssl() ) {
    58                     $upload_data[ $key ] = str_replace( 'http://', 'https://', $upload_data[ $key ] ); 
     58                    $upload_data[ $key ] = str_replace( 'http://', 'https://', $upload_data[ $key ] );
    5959                }
    6060            } else {
     
    12481248        if ( ! bp_get_current_group_id() && ! empty( $bp_params['item_id'] ) ) {
    12491249            $needs_reset = array( 'component' => 'groups', 'key' => 'current_group', 'value' => $bp->groups->current_group );
    1250             $bp->groups->current_group = groups_get_group( array(
    1251                 'group_id'        => $bp_params['item_id'],
    1252                 'populate_extras' => false,
    1253             ) );
     1250            $bp->groups->current_group = groups_get_group( $bp_params['item_id'] );
    12541251        }
    12551252
Note: See TracChangeset for help on using the changeset viewer.