[buddypress-trac] [BuddyPress Trac] #7127: Fatal error: Call to undefined function bp_get_total_unread_messages_count()
buddypress-trac
noreply at wordpress.org
Fri Jun 17 16:58:28 UTC 2016
#7127: Fatal error: Call to undefined function
bp_get_total_unread_messages_count()
--------------------------+-----------------------------
Reporter: jameshh93 | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Not sure | Version: 2.5.0
Severity: normal | Keywords:
--------------------------+-----------------------------
When using functions like bp_get_total_unread_messages_count() or
bp_friend_get_total_requests_count using code which used to work just fine
now throws an error.
Code that used to work but now doesnt is:
{{{#!php
<?php
$count =
bp_get_total_unread_messages_count( bp_loggedin_user_id() );
if ( $count > 0 ) {
echo '<div class="site-header-user-
notifcations-bubble">'; echo $count; echo '</div>';
} else {
// The notif count is 0.
}
?>
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7127>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list