From f13425deca820da73055023ea2be3eb1ef7c33d9 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 18 Jun 2013 21:40:14 +0000 Subject: [PATCH] Twenty Eleven: use `get_content_url()` instead of `get_the_post_format_url()`. Fixes #23618. git-svn-id: https://develop.svn.wordpress.org/trunk@24434 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyeleven/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 296d887167..751635063d 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -462,10 +462,13 @@ endif; // twentyeleven_content_nav * Return the first link from the post content. If none found, the * post permalink is used as a fallback. * + * @uses get_content_url() to get the first URL from the post content. + * * @return string */ function twentyeleven_get_first_url() { - $has_url = function_exists( 'get_the_post_format_url' ) ? get_the_post_format_url() : false; + $content = get_the_content(); + $has_url = function_exists( 'get_content_url' ) ? get_content_url( $content ) : false; if ( ! $has_url ) $has_url = twentyeleven_url_grabber();