| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | function main() |
||
| 57 | { |
||
| 58 | $i18n = 'kmm-timeshift'; |
||
| 59 | load_plugin_textdomain( |
||
| 60 | $i18n, |
||
| 61 | false, |
||
| 62 | dirname(plugin_basename(__FILE__)) . '/languages' |
||
| 63 | ); |
||
| 64 | |||
| 65 | |||
| 66 | new Core($i18n); |
||
| 67 | |||
| 68 | if (is_admin()) { |
||
| 69 | // Backend |
||
| 70 | |||
| 71 | // TODO: register your backend-code here... |
||
| 72 | } else { |
||
| 73 | // Frontend |
||
| 74 | |||
| 75 | // TODO: register frontend-code here... |
||
| 76 | } |
||
| 77 | } |
||
| 78 |
If you suppress an error, we recommend checking for the error condition explicitly: