Twenty Eleven: use `get_content_url()` instead of `get_the_post_format_url()`. Fixes #23618.

git-svn-id: http://core.svn.wordpress.org/trunk@24434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-06-18 21:40:14 +00:00
parent 69581bd827
commit b512e9b6a9
1 changed files with 4 additions and 1 deletions

View File

@ -462,10 +462,13 @@ endif; // twentyeleven_content_nav
* Return the first link from the post content. If none found, the * Return the first link from the post content. If none found, the
* post permalink is used as a fallback. * post permalink is used as a fallback.
* *
* @uses get_content_url() to get the first URL from the post content.
*
* @return string * @return string
*/ */
function twentyeleven_get_first_url() { 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 ) if ( ! $has_url )
$has_url = twentyeleven_url_grabber(); $has_url = twentyeleven_url_grabber();