Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/01/2016 09:27:15 PM (8 years ago)
Author:
dcavins
Message:

bp_current_user_can(): Fix backward compatibility.

The changes to bp_current_user_can() in r11052 broke backward
compatibility for passing the site id as the $arg instead of an
array. This commit restores the old behavior.

See #7192.

File:
1 edited

Legend:

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

    r11052 r11058  
    258258    // Backward compatibility for older $blog_id parameter.
    259259    if ( is_int( $args ) ) {
    260         $blog_id = $args;
     260        $site_id = $args;
    261261        $args = array();
    262         $args['site_id'] = $args;
     262        $args['site_id'] = $site_id;
    263263
    264264    // New format for second parameter.
Note: See TracChangeset for help on using the changeset viewer.