Notification not saved when paste from clipboard
-
Hello, I have created a custom notification for when a Moderator or Admin comments in a Buddypress Group.
It does two things:
1. it creates a notification and
2. sends out an email to the members.The email works fine with wp_mail() and the notification is also created fine in most cases, EXCEPT for when the last thing we do in the caption box is copy-paste text. In these scenarios the notification is created for the user (they see a +1), but clicking on the notification gives a “page not found” error.
One of my last tests proved that I can in fact copy-paste content with no character limit in the caption box. But I must make sure I type with my keyboard something before Posting the Update IF I want the notification to save properly in the DB.
I wonder if this is a bug and/or If anyone has experienced a similar problem when copying text into a form.
Best regards,
PabloFunctions and Hooks used:
bp_notifications_add_notification
bp_activity_add
bp_notifications_get_notifications_for_user
bp_notifications_get_registered_components
wp_mail
- You must be logged in to reply to this topic.