Changeset 22800
- Timestamp:
- 11/21/2012 10:39:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r22105 r22800 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 );
Note: See TracChangeset
for help on using the changeset viewer.