root ) ) { /** * Filter the attribute value pairs used for namespace and namespace URI mappings. * * @module sitemaps * * @since 4.8.0 * * @param array $namespaces Associative array with namespaces and namespace URIs. */ $namespaces = apply_filters( 'jetpack_sitemap_news_ns', array( 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd', 'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', 'xmlns:news' => 'http://www.google.com/schemas/sitemap-news/0.9', ) ); $jetpack_version = JETPACK__VERSION; $news_sitemap_xsl_url = $this->finder->construct_sitemap_url( 'news-sitemap.xsl' ); $this->root = array( "" . PHP_EOL . "" . PHP_EOL . 'array_to_xml_attr_string( $namespaces ) . '>', '', ); $this->byte_capacity -= strlen( join( '', $this->root ) ); } return $this->root; } }