Ticket #20449: 20449.patch
File 20449.patch, 880 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/file.php
80 80 $home = get_option( 'home' ); 81 81 $siteurl = get_option( 'siteurl' ); 82 82 if ( $home != '' && $home != $siteurl ) { 83 $wp_path_rel_to_home = str_ replace($home, '', $siteurl); /* $siteurl - $home */84 $pos = strr pos($_SERVER["SCRIPT_FILENAME"], $wp_path_rel_to_home);85 $home_path = substr( $_SERVER["SCRIPT_FILENAME"], 0, $pos);83 $wp_path_rel_to_home = str_ireplace( $home, '', $siteurl ); /* $siteurl - $home */ 84 $pos = strripos( str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ), $wp_path_rel_to_home ); 85 $home_path = substr( $_SERVER['SCRIPT_FILENAME'], 0, $pos ); 86 86 $home_path = trailingslashit( $home_path ); 87 87 } else { 88 88 $home_path = ABSPATH;