Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last Modified Time does not update on Attachment Page sitemap when noindex is bulk selected #8141

Open
2 tasks
Pcosta88 opened this issue Oct 24, 2017 · 2 comments

Comments

@Pcosta88
Copy link
Contributor

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

last modified time did not update when bulk noindex was selected for attachment pages

Please describe what you expected to happen and why.

Making an individual attachment page as noindex results in the attachment-page.xml sitemap to be updated. Therefore, I expected if bulk noindex they it would be updated as well

How can we reproduce this behavior?

1.Note last modified time for the attachment sitemap

screen shot 2017-10-24 at 1 42 05 pm

2.Mark an attachment page as noindex in advanced section of the Yoast Metabox

screen shot 2017-10-24 at 1 41 34 pm

3.See last modified time change

screen shot 2017-10-24 at 1 42 58 pm

4.Go back to attachment page and select it be "index". Save it.

Note: For these last steps, I waited a period of time before returning to it and during some other testing it last modified may have changed. But if you follow them below you will see the last modified does not change.

5.Review what the last modified time is (in this instance it shows 18:10

screen shot 2017-10-24 at 1 38 53 pm

6.Go to SEO->Titles and Metas->Post Types and select "noindex" for attachment pages

screen shot 2017-10-24 at 1 38 40 pm

7.See that last modified shows the same time

screen shot 2017-10-24 at 1 38 53 pm

Technical info

  • WordPress version: 4.8.2
  • Yoast SEO version: 5.7
  • Relevant plugins in case of a bug:
@benvaassen
Copy link
Contributor

Related: #7163

@jdevalk
Copy link
Contributor

jdevalk commented Apr 1, 2019

This is problematic technically, because of how we calculate that date, but it is indeed a bug and we should fix it. Technically if we change a post type to noindex that wasn't noindex before, we should update all those individual attachment posts to that date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants