PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.9
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.9
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Utils/Installer.php +10 -5 3.1.03.4.9 View file →
@@ -60,17 +60,22 @@
60 60 $response['message'] = __( 'Sorry, you do not have permission to install a plugin.', 'templately' );
61 61 return $response;
62 62 }
63 63
64 - /**
65 - * @var array|object $api
66 - */
67 - $api = plugins_api( 'plugin_information', [
64 + $plugins_api_args = [
68 65 'slug' => sanitize_key( wp_unslash( $plugin['slug'] ) ),
69 66 'fields' => [
70 67 'sections' => false,
71 68 ],
72 - ] );
69 + ];
70 + if(isset($plugin['has_license']) && $plugin['has_license']){
71 + $plugins_api_args['has_license'] = $plugin['has_license'];
72 + }
73 + /**
74 + * @var array|object $api
75 + */
76 + $api = plugins_api( 'plugin_information', $plugins_api_args);
77 +
73 78
74 79 if ( is_wp_error( $api ) ) {
75 80 $response['message'] = $api->get_error_message();
76 81