I’ve recently learned that
register_uninstall_hook() allows a single callback per plugin. This meant that if you were using both
scbTable, for example, when a user uninstalled that plugin, either the option wasn’t deleted or the table wasn’t dropped.
This is now fixed by using a new method,
scbUtil::add_uninstall_hook(). It also prevents multiple UPDATE queries to execute on each page load.
This also means that
scbBoxesPage now require
scbUtil to work.
- new methods for
- new method for
scbAdminPage::submit_button()accepts an array of arguments
scbAdminPagecan create top level menus
scbBoxesPagecan assign the same handler to multiple boxes, with different arguments
debug()outputs at the end of the page, only for administrators
Here is the full changeset.