Changeset 23191 for trunk/wp-includes/class-http.php
- Timestamp:
- 12/20/2012 03:55:32 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-http.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r22118 r23191 135 135 136 136 // If we are streaming to a file but no filename was given drop it in the WP temp dir 137 // and pick it 's name using the basename of the $url137 // and pick its name using the basename of the $url 138 138 if ( $r['stream'] && empty( $r['filename'] ) ) 139 139 $r['filename'] = get_temp_dir() . basename( $url ); … … 531 531 return !preg_match($wildcard_regex, $check['host']); 532 532 else 533 return !in_array( $check['host'], $accessible_hosts ); //Inverse logic, If it s in the array, then we can't access it.533 return !in_array( $check['host'], $accessible_hosts ); //Inverse logic, If it's in the array, then we can't access it. 534 534 535 535 } … … 556 556 $path = ! empty( $url_parts['path'] ) ? $url_parts['path'] : '/'; 557 557 558 // If theit's a root-relative path, then great558 // If it's a root-relative path, then great 559 559 if ( ! empty( $relative_url_parts['path'] ) && '/' == $relative_url_parts['path'][0] ) { 560 560 $path = $relative_url_parts['path'];
Note: See TracChangeset
for help on using the changeset viewer.