Changeset 6917
- Timestamp:
- 04/18/2013 12:36:43 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r6754 r6917 96 96 } 97 97 98 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 98 // Only show the disable notifications line if the settings component is enabled 99 if ( bp_is_active( 'settings' ) ) { 100 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 101 } 99 102 100 103 /* Send the message */ … … 171 174 ', 'buddypress' ), $poster_name, $content, $thread_link ); 172 175 173 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 176 // Only show the disable notifications line if the settings component is enabled 177 if ( bp_is_active( 'settings' ) ) { 178 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 179 } 174 180 175 181 /* Send the message */ … … 216 222 ', 'buddypress' ), $poster_name, $content, $thread_link ); 217 223 218 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 224 // Only show the disable notifications line if the settings component is enabled 225 if ( bp_is_active( 'settings' ) ) { 226 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 227 } 219 228 220 229 /* Send the message */ -
trunk/bp-friends/bp-friends-notifications.php
r6589 r6917 40 40 ', 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link ); 41 41 42 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 42 // Only show the disable notifications line if the settings component is enabled 43 if ( bp_is_active( 'settings' ) ) { 44 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 45 } 43 46 44 47 /* Send the message */ … … 75 78 ', 'buddypress' ), $friend_name, $friend_name, $friend_link ); 76 79 77 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 80 // Only show the disable notifications line if the settings component is enabled 81 if ( bp_is_active( 'settings' ) ) { 82 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 83 } 78 84 79 85 /* Send the message */ -
trunk/bp-groups/bp-groups-notifications.php
r6589 r6917 88 88 ', 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link ); 89 89 90 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 90 // Only show the disable notifications line if the settings component is enabled 91 if ( bp_is_active( 'settings' ) ) { 92 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 93 } 91 94 92 95 /* Send the message */ … … 143 146 } 144 147 145 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 148 // Only show the disable notifications line if the settings component is enabled 149 if ( bp_is_active( 'settings' ) ) { 150 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 151 } 146 152 147 153 /* Send the message */ … … 188 194 ', 'buddypress' ), $promoted_to, $group->name, $group_link ); 189 195 190 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 196 // Only show the disable notifications line if the settings component is enabled 197 if ( bp_is_active( 'settings' ) ) { 198 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 199 } 191 200 192 201 /* Send the message */ … … 241 250 ', 'buddypress' ), $inviter_name, $group->name, $invites_link, $group_link, $inviter_name, $inviter_link ); 242 251 243 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 252 // Only show the disable notifications line if the settings component is enabled 253 if ( bp_is_active( 'settings' ) ) { 254 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 255 } 244 256 245 257 /* Send the message */ -
trunk/bp-messages/bp-messages-notifications.php
r6589 r6917 62 62 ', 'buddypress' ), $sender_name, $subject, $content, $message_link ); 63 63 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 } 65 68 66 69 // Send the message
Note: See TracChangeset
for help on using the changeset viewer.