Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2011 06:52:57 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces bp_x_user_meta() wrapper functions. Refactors internal user_meta calls to use the new functions. Fixes #3299

File:
1 edited

Legend:

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

    r4372 r4558  
    3535
    3636        // Now email the user with the contents of the message (if they have enabled email notifications)
    37         if ( 'no' != get_user_meta( $receiver_user_id, bp_get_user_meta_key( 'notification_activity_new_mention' ), true ) ) {
     37        if ( 'no' != bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) {
    3838            $poster_name = bp_core_get_user_displayname( $poster_user_id );
    3939
     
    8282    $original_activity = new BP_Activity_Activity( $activity_id );
    8383
    84     if ( $original_activity->user_id != $commenter_id && 'no' != get_user_meta( $original_activity->user_id, bp_get_user_meta_key( 'notification_activity_new_reply' ), true ) ) {
     84    if ( $original_activity->user_id != $commenter_id && 'no' != bp_get_user_meta( $original_activity->user_id, 'notification_activity_new_reply', true ) ) {
    8585        $poster_name = bp_core_get_user_displayname( $commenter_id );
    8686        $thread_link = bp_activity_get_permalink( $activity_id );
     
    127127    $parent_comment = new BP_Activity_Activity( $parent_id );
    128128
    129     if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != get_user_meta( $parent_comment->user_id, bp_get_user_meta_key( 'notification_activity_new_reply' ), true ) ) {
     129    if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != bp_get_user_meta( $parent_comment->user_id, 'notification_activity_new_reply', true ) ) {
    130130        $poster_name = bp_core_get_user_displayname( $commenter_id );
    131131        $thread_link = bp_activity_get_permalink( $activity_id );
Note: See TracChangeset for help on using the changeset viewer.