[wp-trac] [WordPress Trac] #10337: Easier embeds for 2.9 (oEmbed perhaps?)

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 12 21:36:07 UTC 2009

#10337: Easier embeds for 2.9  (oEmbed perhaps?)
 Reporter:  ryan            |       Owner:  Viper007Bond 
     Type:  task (blessed)  |      Status:  assigned     
 Priority:  normal          |   Milestone:  2.9          
Component:  Shortcodes      |     Version:               
 Severity:  normal          |    Keywords:  needs-testing

Comment(by Viper007Bond):

 Adds `author_can()` function where you can pass a post and a capability.
 Works similarly to `current_user_can()`. If the author of the post doesn't
 have `unfiltered_html`, then oEmbed discovery is disabled and only known
 providers (via the filterable array) can be used.

 Also moves default handlers to `default-embeds.php` and escapes all
 variables just to be extra safe.

Ticket URL: <http://core.trac.wordpress.org/ticket/10337#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list