PluginProbe
Polylang / 3.3
Polylang v3.3
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | modules/sitemaps/load.php +5 -1 2.83.3 View file →
@@ -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 }