| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function isNoticeScreen(): bool |
||
| 33 | { |
||
| 34 | $screen = glsr_current_screen(); |
||
| 35 | $screenIds = ['dashboard', 'plugins', 'update-core']; |
||
| 36 | if (in_array($screen->id, $screenIds)) { |
||
| 37 | return true; |
||
| 38 | } |
||
| 39 | if (method_exists($screen, 'in_admin') && $screen->in_admin('network')) { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | return parent::isNoticeScreen(); |
||
| 43 | } |
||
| 45 |