| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | $plugins = [ $plugins ]; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | foreach ( $plugins as $plugin ) { |
| 50 | - if ( in_array( $plugin, $already_installed_plugins->keys()->all(), true ) ) { | |
| 50 | + if ( in_array( $plugin, $already_installed_plugins->keys(), true ) ) { | |
| 51 | 51 | $succeeded[] = $plugin; |
| 52 | 52 | continue; |
| 53 | 53 | } |
| 54 | 54 | |
| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | |
| 57 | 57 | $api = Plugin::$instance->wp->plugins_api('plugin_information', |
| 58 | 58 | [ |
| 59 | 59 | 'slug' => $slug, |
| 60 | - 'fields' => [ | |
| 60 | + 'fields' => array( | |
| 61 | 61 | 'short_description' => false, |
| 62 | 62 | 'sections' => false, |
| 63 | 63 | 'requires' => false, |
| 64 | 64 | 'rating' => false, |
| @@ -69,9 +69,9 @@ | ||
| 69 | 69 | 'tags' => false, |
| 70 | 70 | 'compatibility' => false, |
| 71 | 71 | 'homepage' => false, |
| 72 | 72 | 'donate_link' => false, |
| 73 | - ], | |
| 73 | + ), | |
| 74 | 74 | ] |
| 75 | 75 | ); |
| 76 | 76 | |
| 77 | 77 | if ( ! isset( $api->download_link ) ) { |