Ticket #18768: ticket.18768.diff
File ticket.18768.diff, 638 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/file.php
81 81 $siteurl = get_option( 'siteurl' ); 82 82 if ( $home != '' && $home != $siteurl ) { 83 83 $wp_path_rel_to_home = str_replace($home, '', $siteurl); /* $siteurl - $home */ 84 $pos = str pos($_SERVER["SCRIPT_FILENAME"], $wp_path_rel_to_home);84 $pos = strrpos($_SERVER["SCRIPT_FILENAME"], $wp_path_rel_to_home); 85 85 $home_path = substr($_SERVER["SCRIPT_FILENAME"], 0, $pos); 86 86 $home_path = trailingslashit( $home_path ); 87 87 } else {