WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#33879 closed enhancement (duplicate)

Return image ID from media_sideload_image function

Reported by: arkimedia Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3
Component: Media Keywords:
Focuses: Cc:

Description

media_sideload_image function is missing an option to return image ID, which is often needed instead of html or source link.

(In fact, both of the current return options could be genereted from ID by using other core functions)

Attachments (1)

media-sideload-image.diff (1.0 KB) - added by arkimedia 5 years ago.
Media Sideload Image function Git diff

Download all attachments as: .zip

Change History (3)

@arkimedia
5 years ago

Media Sideload Image function Git diff

#1 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @arkimedia, thanks for the ticket.

We're already tracking this issue in #19629.

#2 @arkimedia
5 years ago

Thanks - I'll switch to follow it instead.

Note: See TracTickets for help on using tickets.