Automattic / Automattic/jetpack

Sitemaps: Image totals are incorrect

Open
#6,444 4 comments 0 reactions 0 assignees View on GitHub
[Feature] Sitemaps [Pri] Normal [Status] Stale Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

The sitemap displays the number of images at a particular URL however the totals are not correct. They're displaying more images than there are on the page. In some cases it's counting the same image more than once.

#### Steps to reproduce the issue
1. Create a new post and upload an image.
2. Add a the same image as a featured image.
3. Publish the post.

#### What I expected
I expected to just see one image in the sitemap.

#### What happened instead
The total number of images in the sitemap is two because it counted the same image twice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.