Skip to:
Content

BuddyPress.org

Changeset 11561


Ignore:
Timestamp:
05/31/2017 07:12:20 PM (7 years ago)
Author:
r-a-y
Message:

Friends: Do not prime mention results if user is not logged in.

Props bhargavbhandari90.

Fixes #7530.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-functions.php

    r11539 r11561  
    774774 */
    775775function bp_friends_prime_mentions_results() {
     776
     777    // Stop here if user is not logged in.
     778    if ( ! is_user_logged_in() ) {
     779        return;
     780    }
     781
    776782    if ( ! bp_activity_maybe_load_mentions_scripts() ) {
    777783        return;
Note: See TracChangeset for help on using the changeset viewer.