WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#20151 new enhancement

Add parameter for wp_embed_defaults()

Reported by: wpsmith Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: 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 2 years ago.
20151.diff (2.6 KB) - added by sabreuse 2 years ago.

Download all attachments as: .zip

Change History (6)

wpsmith2 years ago

comment:1 ocean902 years ago

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

comment:2 follow-up: wpsmith2 years ago

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

sabreuse2 years ago

comment:3 sabreuse2 years ago

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 DrewAPicture2 years 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 2 years ago by DrewAPicture (previous) (diff)
Note: See TracTickets for help on using tickets.