| @@ -6,15 +6,15 @@ | ||
| 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 | add_filter( |
| 14 | 14 | 'pll_settings_modules', |
| 15 | - function( $modules ) { | |
| 16 | - $modules[] = 'PLL_Settings_Share_Slug'; | |
| 15 | + function ( $modules ) { | |
| 16 | + $modules[] = 'PLL_Settings_Preview_Share_Slug'; | |
| 17 | 17 | return $modules; |
| 18 | 18 | } |
| 19 | 19 | ); |
| 20 | 20 | } |