Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/11/2018 06:46:30 PM (8 years ago)
Author:
boonebgorges
Message:

Move notification settings callbacks out of lazyloaded screen function files.

Loading these add_action() callbacks conditionally caused the
has_action() check in bp_settings_remove_email_subnav() to think
that no components had registered notification settings.

Props r-a-y.
Fixes #7822.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/classes/class-bp-friends-component.php

    r11932 r12087  
    9292                                require $this->path . 'bp-friends/screens/requests.php';
    9393                        }
    94                 }
    95 
    96                 // Settings.
    97                 if ( bp_is_user_settings_notifications() ) {
    98                         require $this->path . 'bp-friends/screens/settings-email.php';
    9994                }
    10095        }
Note: See TracChangeset for help on using the changeset viewer.