iconicwp / WordPress-Settings-Framework

A settings framework for the WordPress settings API
MIT License
334 stars 66 forks source link

Fix wpsf being initialized before document loads #74

Closed godismyjudge95 closed 2 years ago

godismyjudge95 commented 2 years ago

Because of the parentheses on the wpsf.on_ready function signature, it is being called immediately instead of waiting until the document is ready. This causes some undesirable effects (such as tabs not being cached and handlers not being registered).