Make WordPress Core


Ignore:
Timestamp:
11/10/2008 06:54:18 PM (18 years ago)
Author:
ryan
Message:

Notice fixes from DD32. see #7509

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r9541 r9596  
    13931393                if ( !in_array($link_test, $pung) && (url_to_postid($link_test) != $post_ID) // If we haven't pung it already and it isn't a link to itself
    13941394                                && !is_local_attachment($link_test) ) : // Also, let's never ping local attachments.
    1395                         $test = parse_url($link_test);
    1396                         if ( isset($test['query']) )
    1397                                 $post_links[] = $link_test;
    1398                         elseif ( ($test['path'] != '/') && ($test['path'] != '') )
    1399                                 $post_links[] = $link_test;
     1395                        if ( $test = @parse_url($link_test) ) {
     1396                                if ( isset($test['query']) )
     1397                                        $post_links[] = $link_test;
     1398                                elseif ( ($test['path'] != '/') && ($test['path'] != '') )
     1399                                        $post_links[] = $link_test;
     1400                        }
    14001401                endif;
    14011402        endforeach;
Note: See TracChangeset for help on using the changeset viewer.