Changeset 1382948
- Timestamp:
- 03/31/2016 10:59:49 AM (10 years ago)
- Location:
- bp-unsubscribe/trunk
- Files:
-
- 2 edited
-
bp_unsubscribe.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bp-unsubscribe/trunk/bp_unsubscribe.php
r1380323 r1382948 4 4 Plugin URI: http://www.aheadzen.com 5 5 Description: Unsubscribe plugin to stop emails coming from buddypress. 6 Version: 1.0. 46 Version: 1.0.5 7 7 Author: Ask Oracle Team 8 8 Author URI: http://ask-oracle.com/ … … 64 64 65 65 public function get_user_id(){ 66 $user_id = get_current_user_id(); 66 if(current_user_can('administrator')){ 67 $user_id = bp_displayed_user_id(); 68 }else{ 69 $user_id = get_current_user_id(); 70 } 71 67 72 apply_filters('azbp_unsubscribe_user_id',$user_id); 68 73 return $user_id; … … 152 157 <tr id="notification_emails_all_settings"> 153 158 <td> </td> 154 <td><?php _e( " StopAll Email Notifications", 'aheadzen' ) ?></td>159 <td><?php _e( "Receive All Email Notifications", 'aheadzen' ) ?></td> 155 160 <td class="yes"><input type="radio" name="notifications[notification_emails_all]" id="notification_emails_all_settings_yes" value="yes" <?php //checked( $emails_all, 'yes', true ) ?>/></td> 156 161 <td class="no"><input type="radio" name="notifications[notification_emails_all]" id="notification_emails_all_settings_no" value="no" <?php //checked( $emails_all, 'no', true ) ?>/></td> … … 174 179 } 175 180 } 176 181 177 182 bp_settings_update_notification_settings($user_id,$settings); 178 183 } -
bp-unsubscribe/trunk/readme.txt
r1380323 r1382948 88 88 = 1.0.4 = 89 89 * buddypres 2.5+ unsubscribe notification -- correction done 90 91 = 1.0.5 = 92 * user profile changed "All Emails" title --> "Receive All Email Notifications" 93 * Administrator can edit other profile's email notification. 94 95
Note: See TracChangeset
for help on using the changeset viewer.