Make WordPress Core

Changeset 16069


Ignore:
Timestamp:
10/29/2010 07:07:28 AM (16 years ago)
Author:
westi
Message:

Fix some notices when pinging

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r16062 r16069  
    12071207                        if ( isset( $test['query'] ) )
    12081208                                $post_links[] = $link_test;
    1209                         elseif ( $test['path'] != '/' && $test['path'] != '' )
     1209                        elseif ( isset($test['path']) && ( $test['path'] != '/' ) &&  ($test['path'] != '' ) )
    12101210                                $post_links[] = $link_test;
    12111211                }
  • trunk/wp-includes/rewrite.php

    r15989 r16069  
    300300                // Chop off /path/to/blog
    301301                $home_path = parse_url(home_url());
    302                 $home_path = $home_path['path'];
     302                $home_path = isset( $home_path['path'] ) ? $home_path['path'] : '' ;
    303303                $url = str_replace($home_path, '', $url);
    304304        }
Note: See TracChangeset for help on using the changeset viewer.