Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/18/2013 12:36:43 AM (12 years ago)
Author:
boonebgorges
Message:

Only show the 'to disable' notice in emails if Settings is enabled

Unless Settings is enabled, these links will 404. This is not exactly a
regression, but it has become much more visible in BP 1.7, since the Settings
component is no longer enabled by default.

Fixes #4923

Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-notifications.php

    r6589 r6917  
    6262', 'buddypress' ), $sender_name, $subject, $content, $message_link );
    6363
    64             $email_content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     64            // Only show the disable notifications line if the settings component is enabled
     65            if ( bp_is_active( 'settings' ) ) {
     66                $email_content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     67            }
    6568
    6669            // Send the message
Note: See TracChangeset for help on using the changeset viewer.