Commit 9d24a36
committed
Fix fatal error on some new setups.
The `get_plugin_settings` function returns a default value of `false`, through WordPress' `get_option` call, while an array is expected. This change adds a check for a boolean `false` value, and sets the default value as an empty array in such cases.
Fixes #31 parent 3af3549 commit 9d24a36
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
0 commit comments