Commit ef06030
authored
Wrap in exists check
This class isn't initialized if Polylang doesn't exist, but Polylang doesn't define pll_current_language if there aren't any languages, eg. you have a fresh installation and haven't configured it yet.1 parent 0efafcf commit ef06030
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
0 commit comments