Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#36672 closed defect (bug) (worksforme)

wp_get_attachment_image_src return URL with blog id in network setup

Reported by: ahriad's profile ahriad Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: multisite Cc:

Description

Using the function wp_get_attachment_image_src return the URL with 'blogs.dir' and blog id.
Example : http://example.org/wp-content/blogs.dir/41/files/2016/04/image.png

instead the function supposed to return the url w/o '/blogs.dir/41' part.

Change History (4)

This ticket was mentioned in Slack in #core-media by desrosj. View the logs.


7 years ago

#2 follow-up: @desrosj
7 years ago

  • Focuses multisite added
  • Keywords reporter-feedback added
  • Version 4.5 deleted

@ahriad can you provide some more details for replicating this behavior? What is your setup like (are you on a fresh WordPress install)? Which site are you on? What type of multisite are you running (subdomain or subdirectory)?

#3 in reply to: ↑ 2 @ahriad
7 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Replying to desrosj:

@ahriad can you provide some more details for replicating this behavior? What is your setup like (are you on a fresh WordPress install)? Which site are you on? What type of multisite are you running (subdomain or subdirectory)?

Working fine now, didn't notice which version fixed it.

#4 @SergeyBiryukov
7 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted

Related: #19235

Note: See TracTickets for help on using tickets.