Why my uploaded picture was loaded into /uploads/2015/02 not /uploads/2016/01?

Today is 2016-01-01 in my console.

date
Fri Jan  1 14:24:04 CST 2016

Now I write an article attached a photo which is taken today and publish it today. I found that the URL of the photo was displayed as:

<a href="http://hwy.local/wp/wp-content/uploads/2015/02/scan.png">
  <img src="https://hwy.local/wp/wp-content/uploads/2015/02/scan-169x300.png" alt="scan" width="169" height="300" class="alignnone size-medium wp-image-2098" />
</a>

Why not src="https://hwy.local/wp/wp-content/uploads/2016/01/scan-169x300.png"?

  1. The photo was taken today.
  2. I upload it today.
  3. The date on my OS is 2016-01-01.

Why is uploads/2015/02/scan-169x300.png in src not uploads/2016/01/scan-169x300.png in the src?

3 s
3

What date was/is the post published? Media uploads are added to the folder when the post/page was published, not the upload date. Was the post originally published in Feb 2015?

https://core.trac.wordpress.org/ticket/10752

Leave a Comment