iconicwp / WordPress-Settings-Framework

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

Silence errors when there are no settings defined #115

Closed davegreenwp closed 1 year ago

davegreenwp commented 1 year ago

When you have a new project, and no settings have been defined, multiple errors are generated.

This PR returns an empty array if $this->settings or $this->settings_page are empty, avoiding these errors.