Reply To: Missing – else return $action
Hi Robin,
I followed your instruction. No white page after uploaded that’s all good… Not sure this a default global message in general or what? That Attention message still exist above the admin page?
Anyhow, I pasted that phase on line 43 that is after this function.
function bbp_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = ‘string’ ) {
// Bail if not the notification action we are looking for – THIS IS FROM ADMIN BUG MESSAGE , bbpress.org/forums/topic/missing-else-return-action/#post-176758
if ( ‘bbp_new_reply’ !== $action ) {
return $action;
}
// New reply notifications
if ( ‘bbp_new_reply’ === $action )
Also I’m not sure am I suppose to do this or not? I don’t understand php, but what I don’t see is this ?> at the END of the php? I see every other php do have it!
So I added this ?> to close it. I hope is right?
Please advise help if this Ok? Thanks