Sorry to disturb you again.
But I just found another bug due to this issue.
In groups, when you suggest user, ajaxurl is broken here to:
admin-ajax.php?lang=en&bpml_filter=true?action=bp_group_admin_member_autocomplete&group_id=12
File: wp-content\plugins\buddypress\bp-groups\admin\js\admin.js Line: 14
So, you can’t change ajaxurl
. Whenever, someone uses ajaxurl + '?someparam=someval'
in JS file, the ajax request brokes.
I think you need to fix this because whoever uses ajaxurl + '?'
, the ajax request fails.
And you are using add_query_arg()
in bp_core_ajax_url
filter to modify ajaxurl throughout the site.
I think, may be using bpml_filter and lang parameter as post parameter will be better.
Thank you Srdjan for your assistance!