diff --git src/bp-core/bp-core-caps.php src/bp-core/bp-core-caps.php
index 9b59eec..cd719f1 100644
|
|
function bp_set_current_user_default_role() { |
257 | 257 | function bp_current_user_can( $capability, $args = array() ) { |
258 | 258 | // Backward compatibility for older $blog_id parameter. |
259 | 259 | if ( is_int( $args ) ) { |
260 | | $blog_id = $args; |
| 260 | $site_id = $args; |
261 | 261 | $args = array(); |
262 | | $args['site_id'] = $args; |
| 262 | $args['site_id'] = $site_id; |
263 | 263 | |
264 | 264 | // New format for second parameter. |
265 | 265 | } elseif ( is_array( $args ) && isset( $args['blog_id'] ) ) { |