“XX commented on one of your updates” notification can’t disappear
-
Hello,
I use simple loop to display user notifications:
if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), $format = 'string' ) ) { } if ( $notifications ) { $counter = 0; for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) { $alt = ( 0 == $counter % 2 ) ? ' alt' : ''; ?> <div class="my-notification<?php echo $alt ?>"><?php echo $notifications[$i] ?></div> <?php $counter++; } }
When user click and view any notification it disappears automatically except
“XX commented on one of your updates” notification. When I switch to a default wp theme and click on this notification it disappears. Both links on both themes are the same, it’s
activity/p/277/?nid=74#acomment-294Why it happens only to one notification? All other notifications works fine.
- You must be logged in to reply to this topic.