[wp-trac] [WordPress Trac] #41753: _wp_get_attachment_relative_path uses hardcoded uploads directory path
WordPress Trac
noreply at wordpress.org
Thu Feb 7 22:25:40 UTC 2019
#41753: _wp_get_attachment_relative_path uses hardcoded uploads directory path
-------------------------+------------------------------
Reporter: nedga055 | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by antpb):
This ticket was discussed in the recent media component meeting. We are
wondering if this will impact multisite and would caution that we do some
testing with it in that configuration. My initial digging found that we do
account for multisite in the `wp_upload_dir` docs.
https://developer.wordpress.org/reference/functions/wp_upload_dir/
This below comment mentions `wu_upload_dir();` accounts for multisite by
appending sitename or id.
https://developer.wordpress.org/reference/functions/wp_upload_dir/#comment-2703
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41753#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list