[wp-hackers] How to fix oEmbed in 2.9

Otto 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
overhead though.

-Otto



On Wed, Dec 16, 2009 at 1:50 PM, Milan Dinić <liste at srpski.biz> wrote:
> Alex created a plugin for this earlier today.
> http://www.viper007bond.com/2009/12/15/new-plugin-enable-oembed-discovery/
>
> 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.
>>
>> -Otto
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list