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