[wp-hackers] How to fix oEmbed in 2.9
otto at ottodestruct.com
Wed Dec 16 19:53:39 UTC 2009
Cool, didn't know that.
I prefer not to use plugins for simple one-liners because of the
On Wed, Dec 16, 2009 at 1:50 PM, Milan Dinić <liste at srpski.biz> wrote:
> Alex created a plugin for this earlier today.
> 2009/12/16 Otto <otto at ottodestruct.com>
>> I'm very disappointed that the core team has decided to cripple the
>> new oEmbed functionality in 2.9 by intentionally disabling the
>> discovery mode and removing the option to enable it.
>> So here's the fix for this 2.9 misfeature:
>> add_filter('embed_oembed_discover', create_function('$a','return true;'));
>> You can add that into a plugin or your theme's functions.php file and
>> oEmbed will be up and working again, with full uncrippled power.
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers