projects/plugins/jetpack/modules/sitemaps/sitemap-buffer-master.php 1 location
|
@@ 34-43 (lines=10) @@
|
31 |
|
); |
32 |
|
} |
33 |
|
|
34 |
|
protected function get_root_element() { |
35 |
|
if ( ! isset( $this->root ) ) { |
36 |
|
$this->root = $this->doc->createElement( 'sitemapindex' ); |
37 |
|
$this->root->setAttribute( 'xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9' ); |
38 |
|
$this->doc->appendChild( $this->root ); |
39 |
|
$this->byte_capacity -= strlen( $this->doc->saveXML( $this->root ) ); |
40 |
|
} |
41 |
|
|
42 |
|
return $this->root; |
43 |
|
} |
44 |
|
} |
45 |
|
|
projects/plugins/jetpack/modules/sitemaps/sitemap-builder.php 1 location
|
@@ 57-66 (lines=10) @@
|
54 |
|
); |
55 |
|
} |
56 |
|
|
57 |
|
protected function get_root_element() { |
58 |
|
if ( ! isset( $this->root ) ) { |
59 |
|
$this->root = $this->doc->createElement( 'sitemapindex' ); |
60 |
|
$this->root->setAttribute( 'xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9' ); |
61 |
|
$this->doc->appendChild( $this->root ); |
62 |
|
$this->byte_capacity -= strlen( $this->doc->saveXML( $this->root ) ); |
63 |
|
} |
64 |
|
|
65 |
|
return $this->root; |
66 |
|
} |
67 |
|
} |
68 |
|
|
69 |
|
/** |