From c3bcc9800eb4b41f2f254b0a75959f49b952db6a Mon Sep 17 00:00:00 2001 From: duck_ Date: Fri, 28 Oct 2011 19:42:57 +0000 Subject: [PATCH] Fix polldaddy oEmbed regular expression to work with new style URLs. Props r-a-y, azaozz. Fixes #17106. git-svn-id: http://svn.automattic.com/wordpress/trunk@19076 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index e38860f68..d9919b216 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -45,7 +45,7 @@ class WP_oEmbed { 'http://gi*.photobucket.com/groups/*' => array( 'http://photobucket.com/oembed', false ), '#http://(www\.)?scribd\.com/.*#i' => array( 'http://www.scribd.com/services/oembed', true ), 'http://wordpress.tv/*' => array( 'http://wordpress.tv/oembed/', false ), - '#http://(answers|surveys)\.polldaddy.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ), + '#http://(.+\.)?polldaddy\.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ), '#http://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ), ) );