Opened 15 months ago

Last modified 15 months ago

#20151 new enhancement

Add parameter for wp_embed_defaults()

Reported by: wpsmith Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version:
Severity: normal Keywords: has-patch
Cc:

Description

If we can add a parameter (like $url) to wp_embed_defaults(), then people can filter more intelligently as WordPress extends to allow more and more oEmbed.

Attachments (2)

wp_embed_defaults.patch (2.6 KB) - added by wpsmith 15 months ago.
20151.diff (2.6 KB) - added by sabreuse 15 months ago.

Download all attachments as: .zip

Change History (6)

Could you please make your patch relative to the root dir?

comment:2 follow-up: ↓ 4   wpsmith15 months ago

I'm sorry but I am unsure how to do that. The files are located in wordpress/wp-includes/

20151.diff is a refresh of wpsmith's patch, fixed to be relative to root and with trailing CR's removed.

comment:4 in reply to: ↑ 2   DrewAPicture15 months ago

Replying to wpsmith:

I'm sorry but I am unsure how to do that. The files are located in wordpress/wp-includes/

You would generate the diff/patch from the site root (in your case wordpress/) rather than from within wp-includes.

Last edited 15 months ago by DrewAPicture (previous) (diff)
Note: See TracTickets for help on using tickets.