| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Polylang |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Don't access directly. |
| 8 |
}; |
| 9 |
|
| 10 |
if ( $polylang->model->get_languages_list() ) { |
| 11 |
if ( $polylang->links_model instanceof PLL_Links_Abstract_Domain ) { |
| 12 |
$polylang->sitemaps = new PLL_Sitemaps_Domain( $polylang ); |
| 13 |
} else { |
| 14 |
$polylang->sitemaps = new PLL_Sitemaps( $polylang ); |
| 15 |
} |
| 16 |
$polylang->sitemaps->init(); |
| 17 |
} |
| 18 |
|