diff --git bp-core/bp-core-catchuri.php bp-core/bp-core-catchuri.php
index bb1c167..6cb0202 100644
|
|
function bp_core_set_uri_globals() { |
250 | 250 | return; |
251 | 251 | } |
252 | 252 | |
| 253 | if ( bp_core_is_user_spammer( $bp->displayed_user->id ) && !is_super_admin() ) { |
| 254 | bp_do_404(); |
| 255 | return; |
| 256 | } |
| 257 | |
253 | 258 | // Bump the offset |
254 | 259 | if ( isset( $bp_uri[$uri_offset + 2] ) ) { |
255 | 260 | $bp_uri = array_merge( array(), array_slice( $bp_uri, $uri_offset + 2 ) ); |
… |
… |
function bp_core_catch_no_access() { |
383 | 388 | bp_do_404(); |
384 | 389 | } |
385 | 390 | } |
386 | | add_action( 'wp', 'bp_core_catch_no_access' ); |
| 391 | add_action( 'bp_init', 'bp_core_catch_no_access', 8 ); |
387 | 392 | |
388 | 393 | /** |
389 | 394 | * Redirects a user to login for BP pages that require access control and adds an error message (if |