���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
wp-content
/
plugins
/
polylang
/
modules
/
sitemaps
/
Viewing: sitemaps-domain.php
<?php /** * @package Polylang */ /** * Handles the core sitemaps for subdomains and multiple domains. * * @since 3.0 */ class PLL_Sitemaps_Domain extends PLL_Abstract_Sitemaps { /** * @var PLL_Links_Abstract_Domain */ protected $links_model; /** * Constructor. * * @since 3.0 * * @param object $polylang Main Polylang object. */ public function __construct( &$polylang ) { $this->links_model = &$polylang->links_model; } /** * Setups actions and filters. * * @since 3.0 * * @return void */ public function init() { parent::init(); add_filter( 'wp_sitemaps_index_entry', array( $this, 'index_entry' ) ); add_filter( 'wp_sitemaps_stylesheet_url', array( $this->links_model, 'site_url' ) ); add_filter( 'wp_sitemaps_stylesheet_index_url', array( $this->links_model, 'site_url' ) ); add_filter( 'home_url', array( $this, 'sitemap_url' ) ); } /** * Filters the sitemap index entries for subdomains and multiple domains. * * @since 2.8 * * @param array $sitemap_entry Sitemap entry for the post. * @return array */ public function index_entry( $sitemap_entry ) { $sitemap_entry['loc'] = $this->links_model->site_url( $sitemap_entry['loc'] ); return $sitemap_entry; } /** * Makes sure that the sitemap urls are always evaluated on the current domain. * * @since 2.8.4 * * @param string $url A sitemap url. * @return string */ public function sitemap_url( $url ) { if ( false !== strpos( $url, '/wp-sitemap' ) ) { $url = $this->links_model->site_url( $url ); } return $url; } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa