Open StevenDufresne opened 3 years ago
This is only required for links inside large blocks of text, like post and page content, comment content, and large content in text widgets. The purpose is only make sure that links are distinctively different from surrounding text.
So it is not just "any" heading that is linked. And not things like lists of links inside the latest posts widget in a widget area
-Because the classes for wrappers around the_content
etc can be changed by the theme, I don't think this check can be made foolproof?
It might be possible to select all <p>
elements and only check for underlines on links within if the <p>
contains more than x words, or takes up more than x% of the page or something.