Make WordPress Core

Changeset 24434


Ignore:
Timestamp:
06/18/2013 09:40:14 PM (13 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r24194 r24434  
    463463 * post permalink is used as a fallback.
    464464 *
     465 * @uses get_content_url() to get the first URL from the post content.
     466 *
    465467 * @return string
    466468 */
    467469function twentyeleven_get_first_url() {
    468     $has_url = function_exists( 'get_the_post_format_url' ) ? get_the_post_format_url() : false;
     470    $content = get_the_content();
     471    $has_url = function_exists( 'get_content_url' ) ? get_content_url( $content ) : false;
    469472
    470473    if ( ! $has_url )
Note: See TracChangeset for help on using the changeset viewer.