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-activity/classes/class-bp-activity-component.php

    r11958 r12087  
    137137                        // Theme compatibility.
    138138                        new BP_Activity_Theme_Compat();
    139                 }
    140 
    141                 // Activity notifications HTML table.
    142                 if ( bp_is_user_settings_notifications() ) {
    143                         require $this->path . 'bp-activity/screens/settings-email.php';
    144139                }
    145140        }
Note: See TracChangeset for help on using the changeset viewer.