Plugin Directory

Changeset 810766


Ignore:
Timestamp:
11/26/2013 12:35:42 PM (12 years ago)
Author:
migueluy
Message:

Jetpack: Fix Undefined index Notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/class.media-extractor.php

    r806171 r810766  
    207207
    208208                    // Build a simple form of the URL so we can compare it to ones we found in IMAGES or SHORTCODES and exclude those
    209                     $simple_url = $url['scheme'] . '://' . $url['host'] . $url['path'];
     209                    $simple_url = $url['scheme'] . '://' . $url['host'] . ( isset( $url['path'] ) ? $url['path'] : '' );
    210210                    if ( isset( $extracted['image']['url'] ) ) {
    211211                        if ( in_array( $simple_url, (array) $extracted['image']['url'] ) )
Note: See TracChangeset for help on using the changeset viewer.