Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#33879 closed enhancement (duplicate)

Return image ID from media_sideload_image function

Reported by: arkimedia's profile 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 10 years ago.
Media Sideload Image function Git diff

Download all attachments as: .zip

Change History (3)

@arkimedia
10 years ago

Media Sideload Image function Git diff

#1 @SergeyBiryukov
10 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
10 years ago

Thanks - I'll switch to follow it instead.

Note: See TracTickets for help on using tickets.