Plugin Directory

Changeset 799445

Timestamp:
11/05/2013 09:27:11 PM (11 years ago)
Author:
jshreve
Message:

Only delcare get_youtube_id and sanitize_youtube_url if they don't already exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/shortcodes/youtube.php

    r704193 r799445  
    117117 * @return string The normalized URL
    118118 */
     119
    119120function youtube_sanitize_url( $url ) {
    120121    $url = trim( $url, ' "' );
     
    131132    return $url;
    132133}
     134
    133135
    134136/*
     
    154156 * @return bool|mixed The Youtube video ID
    155157 */
     158
    156159function get_youtube_id( $url ) {
    157160
     
    180183    return $id;
    181184}
     185
    182186
    183187/**
Note: See TracChangeset for help on using the changeset viewer.