Skip to content

Commit dd5d1b9

Browse files
authored
Merge pull request #13 from timeflyingaway/patch-1
Fix priority ignore when 0
2 parents c5ab51f + 2888a55 commit dd5d1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml-sitemap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function parse_dir( string $dir, string $url ): void {
151151
if ( ! empty( $this->changefreq ) ) {
152152
$output .= "\t" . '<changefreq>' . $this->changefreq . '</changefreq>' . PHP_EOL;
153153
}
154-
if ( $this->priority !== 0 && $this->priority <= 1 ) {
154+
if ( $this->priority > 0 && $this->priority <= 1 ) {
155155
$output .= "\t" . '<priority>' . $this->priority . '</priority>' . PHP_EOL;
156156
}
157157
$output .= '</url>' . PHP_EOL;

0 commit comments

Comments
 (0)