Buddypress bulk message deletion not working.
|Reported by:||Nishant_Official||Owned by:|
|Component:||Appearance - Template Pack||Keywords:||needs-patch|
I am developing an applicaiton using Buddypress 1.9.1 and WordPress 3.8.1. I am customizing BuddyPress with its template functionality. When testing message section, I was unable to bulk delete messages. The problem is already mentioned in thread - http://buddypress.org/support/topic/delete-selected-not-working/.
I found the problem with file:
\wp-content\plugins\buddypress\bp-templates\bp-legacy\js\buddypress.js @ line 1242
Problem was wrong calling of inArray() function.
I changed the code from
if ( -1 == jq.inArray( this.id ), Array( 'delete_sentbox_messages', 'delete_inbox_messages' ) )
if ( -1 == jq.inArray( this.id, Array( 'delete_sentbox_messages', 'delete_inbox_messages' )))
Everything is working fine now.
I hope I caught the right thing. If it was not please notify.
Thanks for writting this code poem named BuddyPress.
Change History (12)
3 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed