Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function disabled_upload_zip_files($action, $result) |
||
31 | { |
||
32 | if (!\in_array($action, ['theme-upload', 'plugin-upload'])) { |
||
33 | return; |
||
34 | } |
||
35 | |||
36 | wp_die($action === 'theme-upload' ? __('Sorry, you are not allowed to install plugins on this site.') : __('Sorry, you are not allowed to install themes on this site.')); |
||
37 | } |
||
39 |