| @@ -6,11 +6,11 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 9 | exit; // Don't access directly |
| 10 | -}; | |
| 10 | +} | |
| 11 | 11 | |
| 12 | -if ( $polylang->model->get_languages_list() ) { | |
| 12 | +if ( $polylang->model->has_languages() ) { | |
| 13 | 13 | if ( $polylang instanceof PLL_Admin_Base ) { |
| 14 | 14 | $polylang->sync = new PLL_Admin_Sync( $polylang ); |
| 15 | 15 | } else { |
| 16 | 16 | $polylang->sync = new PLL_Sync( $polylang ); |
| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | add_filter( |
| 20 | 20 | 'pll_settings_modules', |
| 21 | - function( $modules ) { | |
| 21 | + function ( $modules ) { | |
| 22 | 22 | $modules[] = 'PLL_Settings_Sync'; |
| 23 | 23 | return $modules; |
| 24 | 24 | } |
| 25 | 25 | ); |