WordPress.org

Make WordPress Core

Changeset 9177


Ignore:
Timestamp:
10/14/08 21:08:28 (6 years ago)
Author:
westi
Message:

Notice fixes. See #7509 props DD32.

Location:
trunk/wp-includes
Files:
3 edited

Legend:

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

    r9156 r9177  
    167167    if ( isset($user_home['host']) ) 
    168168        $redirect['host'] = $user_home['host']; 
     169    if ( !isset($user_home['path']) ) 
     170        $user_home['path'] = '/'; 
    169171 
    170172    // Handle ports 
     
    240242            $redirect_url .= ':' . $redirect['port']; 
    241243        $redirect_url .= $redirect['path']; 
    242         if ( $redirect['query'] ) 
     244        if ( isset($redirect['query']) ) 
    243245            $redirect_url .= '?' . $redirect['query']; 
    244246    } 
  • trunk/wp-includes/plugin.php

    r9000 r9177  
    659659            if ( false === $priority ) 
    660660                return false; 
    661             $count = isset($wp_filter[$tag]) ? count((array)$wp_filter[$tag][$priority]) : 0; 
     661            $count = isset($wp_filter[$tag][$priority]) ? count((array)$wp_filter[$tag][$priority]) : 0; 
    662662            $function[0]->wp_filter_id = $count; 
    663663            $obj_idx .= $count; 
  • trunk/wp-includes/post.php

    r9145 r9177  
    2929    $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); 
    3030    // If the file is relative, prepend upload dir 
    31     if ( 0 !== strpos($file, '/') ) { 
    32         $uploads = wp_upload_dir(); 
     31    if ( 0 !== strpos($file, '/') && ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) ) 
    3332        $file = $uploads['basedir'] . "/$file"; 
    34     } 
    3533         
    3634    if ( $unfiltered ) 
Note: See TracChangeset for help on using the changeset viewer.