Incompatibility Issue: Error Caused by add_link_attributes Function
-
Issue Summary:
I have identified a compatibility issue with the Rank Math SEO plugin, while using elementor button widget and buddyboss theme activity widget, specifically related to the “add_link_attributes” function within the file “seo-by-rank-math/includes/frontend/class-link-attributes.php.” This function is performing a string replace operation that is causing unexpected errors.Steps to Reproduce:
- Activate the Rank Math SEO plugin.
- Activate the Elementor plugin.
- Activate the Buddyboss theme.
- Create a page and edit with Elementor.
- Add a button with External Link.
- Add Activity widget below that button.
- Post some activity with mentions.
- You will see in the activity widget, the content is broken.
Expected Behavior:
Should not break the content.Actual Behavior:
The content is broken.
data-bp-activity attribute of list item activity has the serialize value and that value is broken when Rank Math SEO plugin is active.Error Details:
Upon investigation, the issue seems to stem from the “add_link_attributes” function in the mentioned file. The string replace operation within this function is causing the issue.Environment:
WordPress Version: Latest version
Rank Math SEO Version: Latest version
Elementor Version: Latest version
Buddyboss Theme: Latest versionThank you for your prompt attention to this matter. I appreciate your assistance in resolving this compatibility issue.
- The topic ‘Incompatibility Issue: Error Caused by add_link_attributes Function’ is closed to new replies.