[wp-hackers] How to fix oEmbed in 2.9

Milan Dinić liste at srpski.biz
Wed Dec 16 19:50:36 UTC 2009


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
>


More information about the wp-hackers mailing list