5 | | This function is actually (a bit) safer than `_wp_upload_dir_baseurl()` as the filter is run every time on the pre-cached data. I know it sounds weird to store some image sub-sizes in one location and other in another location, but there might be plugins doing that and depending on the `upload_dir` filter to select the proper path/URL. Even thinking it is better to commit this patch and remove _wp_upload_dir_baseurl() completely. |
| 5 | This function is actually (a bit) safer than `_wp_upload_dir_baseurl()` as the filter is run every time on the pre-cached data. I know it sounds weird to store some image sub-sizes in one location and other in another location, but there might be plugins doing that and depending on the `upload_dir` filter to select the proper path/URL. |
| 6 | |
| 7 | Thinking it is better to commit this patch and remove _wp_upload_dir_baseurl() completely. Can add a simple way to disable the caching for eventual edge cases on multisite installs. |