Changeset 9177
- Timestamp:
- 10/14/2008 09:08:28 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r9156 r9177 167 167 if ( isset($user_home['host']) ) 168 168 $redirect['host'] = $user_home['host']; 169 if ( !isset($user_home['path']) ) 170 $user_home['path'] = '/'; 169 171 170 172 // Handle ports … … 240 242 $redirect_url .= ':' . $redirect['port']; 241 243 $redirect_url .= $redirect['path']; 242 if ( $redirect['query'])244 if ( isset($redirect['query']) ) 243 245 $redirect_url .= '?' . $redirect['query']; 244 246 } -
trunk/wp-includes/plugin.php
r9000 r9177 659 659 if ( false === $priority ) 660 660 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; 662 662 $function[0]->wp_filter_id = $count; 663 663 $obj_idx .= $count; -
trunk/wp-includes/post.php
r9145 r9177 29 29 $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); 30 30 // 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'] ) ) 33 32 $file = $uploads['basedir'] . "/$file"; 34 }35 33 36 34 if ( $unfiltered )
Note: See TracChangeset
for help on using the changeset viewer.