Make WordPress Core

Changeset 24709


Ignore:
Timestamp:
07/16/2013 12:21:09 AM (11 years ago)
Author:
lancewillett
Message:

Twenty Eleven: use the new URL extraction function name, see #24202 and r24682.

File:
1 edited

Legend:

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

    r24434 r24709  
    463463 * post permalink is used as a fallback.
    464464 *
    465  * @uses get_content_url() to get the first URL from the post content.
     465 * @uses get_url_in_content() to get the first URL from the post content.
    466466 *
    467467 * @return string
     
    469469function twentyeleven_get_first_url() {
    470470    $content = get_the_content();
    471     $has_url = function_exists( 'get_content_url' ) ? get_content_url( $content ) : false;
     471    $has_url = function_exists( 'get_url_in_content' ) ? get_url_in_content( $content ) : false;
    472472
    473473    if ( ! $has_url )
Note: See TracChangeset for help on using the changeset viewer.