| @@ -7,7 +7,11 @@ | ||
| 7 | 7 | exit; // Don't access directly. |
| 8 | 8 | }; |
| 9 | 9 | |
| 10 | 10 | if ( $polylang->model->get_languages_list() ) { |
| 11 | - $polylang->sitemaps = new PLL_Sitemaps( $polylang ); | |
| 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 | + } | |
| 12 | 16 | $polylang->sitemaps->init(); |
| 13 | 17 | } |