Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/15/2015 09:01:31 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Messages: Remove unused redirect in bp_has_message_threads().

This change prevents a debug notice for themes with built-in BuddyPress support, by removing a tightly-scoped redirect attempt that only occurs after page output has already started. It also removes a superfluous bp_moderate capability check from the message notices screen function, as that function is only hooked in if the user has bp_moderate previously.

Fixes #6506 (in trunk, for 2.4)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-screens.php

    r9862 r9946  
    196196    global $notice_id;
    197197
    198     if ( !bp_current_user_can( 'bp_moderate' ) ) {
    199         return false;
    200     }
    201 
    202     $notice_id = (int)bp_action_variable( 1 );
     198    $notice_id = (int) bp_action_variable( 1 );
    203199
    204200    if ( !empty( $notice_id ) && is_numeric( $notice_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.