#36371 closed defect (bug) (fixed)
Add "deprecated" to _wp_upload_dir_baseurl()
| Reported by: | azaozz | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | General | Version: | 4.6 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
This was part from the "big" patch on #34945 (that didn't make it), we still need to add it.
Attachments (1)
Change History (9)
#3
@
11 years ago
36371.patch looks good. Should we not list wp_get_upload_dir() as the alternative though? If so, we'll need to adjust the docs slightly, e.g.
<?php /** * Returns the base URL of the uploads directory. * * @since 4.4.0 * @access private * @deprecated 4.5.0 Use wp_get_upload_dir() * @see wp_get_upload_dir() * * @return string The base URL. */
#4
@
11 years ago
I'd really hoped we could remove this function entirely during the release, since it was only around for one release, always marked private and with an _, and not used by any plugins (minus RespImg feature plugin) in the repo.
Since we're in RC, I support this change, but maybe a new ticket to remove the function in 4.6 is warranted so it doesn't enter forever deprecated-land?
Good catch. The only use was replaced with
wp_get_upload_dir()in r36569.