root ) ) { /** * Filter the XML namespaces included in image sitemaps. * * @module sitemaps * * @since 4.8.0 * * @param array $namespaces Associative array with namespaces and namespace URIs. */ $namespaces = apply_filters( 'jetpack_sitemap_image_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:image' => 'http://www.google.com/schemas/sitemap-image/1.1', ) ); $sitemap_xsl_url = $this->finder->construct_sitemap_url( 'sitemap.xsl' ); $jetpack_version = JETPACK__VERSION; $this->root = array( "" . PHP_EOL . "" . PHP_EOL . 'array_to_xml_attr_string( $namespaces ) . '>' . PHP_EOL, '' ); $this->byte_capacity -= strlen( join( '', $this->root ) ); } return $this->root; } }