dmchale / disable-json-api

Public repo for the "Disable REST API" WordPress plugin, currently with 90,000+ active installs in the wordpress.org repository
10 stars 9 forks source link

Remove `onclick` event bindings #48

Open dmchale opened 11 months ago

dmchale commented 11 months ago

Replace onclick bindings with javascript script-level handlers

Ensure that namespace encoding doesn't get messed up when changing from a function call to a saved data attribute, when passed to the resulting functions. Check for slashes, dashes, etc