WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#43579 new feature request

Optional post_id param in media_sideload_image and media_handle_sideload function

Reported by: sebastian.pisula Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: Cc:

Description

I think that post_id param in media_sideload_image and media_handle_sideload function should be option optional.

media_sideload_image() call media_handle_sideload() with post_id and this function get current time $time = current_time( 'mysql' ); if post date not exists.

Sa this param can be optional.

Attachments (2)

43579.patch (2.0 KB) - added by sebastian.pisula 3 months ago.
435791.patch (2.0 KB) - added by sebastian.pisula 3 months ago.

Download all attachments as: .zip

Change History (3)

#1 @sebastian.pisula
3 months ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.