My first WordPress core ticket

I was doing some testing for our WooCommerce Points and Rewards plugin, and I noticed that there is an issue in the privacy policy page in WordPress core.

The privacy policy guide accordion panels for plugins with non-English characters do not work. This can happen when the user profile language is set to a different language and some plugin names would get translated. When we click on the accordion, there is a JavaScript error in the browser console that says Uncaught Error: Syntax error, unrecognized expression: #privacy-settings-accordion-block-%e9%bb%9e%e6%95%b8%e8%88%87%e7%8d%8e%e5%8b%b5

The third accordion panel under “Politiques” does not expand or collapse when you click on it.

I looked into the WordPress core code and it does seem to be a valid issue, not a local environment issue. It was a good PHP and WordPress learning experience for me.

I logged a ticket in WordPress core with my findings here: Policies accordion does not work for plugin names with non-English characters. This is my first WordPress core trac ticket, and I am happy that I get to contribute something like this.

Another user confirmed the issue and came up with some fixes. We have some healthy discussions. I mentioned that I would like to contribute a proper fix for the issue when I have the opportunity to do that.

If you are interested to know more about the technical details and follow the development progress, you can visit the ticket above and click on the “watch” button in the page.

Comments

Leave a Reply

Discover more from Gan Eng Chin

Subscribe now to keep reading and get access to the full archive.

Continue reading