WordPress 6.6 Update Forces Underline on Links

[ad_1]

I have updated to WordPress 6.6 today, and all of my links are underlined.
This code is the cause:

a:where(:not(.wp-element-button)) {
    text-decoration: underline;
}

I have seen that this issue was also caused by wordpress update 6.1, as seen by the topic here:
https://projectdmc.org/support/topic/wordpress-6-1-update-forces-underline-on-links/
However, the code suggested to fix it doesn’t seem to work anymore.
After putting the code into Custom CSS, I get the error:
Expected RPAREN on the second colon of the following fix:

a:where(:not(.wp-element-button)) {
    text-decoration: none;
}

Please advise.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer