Skip to content

Commit 259e563

Browse files
version 1.0 (#1)
1 parent e842fed commit 259e563

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "huttopia/wplingua",
3+
"version": "1.0",
4+
"type": "wordpress-plugin",
5+
"require": {
6+
"composer/installers": "^2.1"
7+
}
8+
}

inc/admin/option-page-register.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313
*/
1414
function wplng_option_page_register() {
1515

16-
if ( is_multisite() ) {
17-
?>
18-
<div class="wplng-notice notice notice-info">
19-
<p><?php esc_html_e( 'wpLingua is not compatible with Multisite.', 'wplingua' ); ?></p>
20-
</div>
21-
<?php
22-
return;
23-
}
24-
2516
$mail = '';
2617
$api_key = wplng_get_api_key();
2718
$json_request_key = get_option( 'wplng_request_free_key' );

inc/admin/option-page-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function wplng_option_page_settings() {
1515

1616
delete_transient( 'wplng_api_key_data' );
1717

18-
if ( empty( wplng_get_api_data() ) || is_multisite() ) {
18+
if ( empty( wplng_get_api_data() ) ) {
1919
wplng_option_page_register();
2020
return;
2121
}

0 commit comments

Comments
 (0)