How to overwrite wp_unique_filename logic

This doesn’t answer the specific issue I was having but does resolve the problem. The cause of my issue was that wp_unique_filename was taking longer and longer as the month went on when we had more images in our media library. We were already namespacing them with year/month dir structure. I ended up adding a … Read more