Changeset 16623
- Timestamp:
- 11/30/2010 07:57:39 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/misc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r16622 r16623 568 568 * @since 2.8.0 569 569 * 570 * @param object$path570 * @param string $path 571 571 * @return bool 572 572 */ … … 583 583 return win_is_writable( $path . '/' . uniqid( mt_rand() ) . '.tmp' ); 584 584 // check tmp file for read/write capabilities 585 $ rm =file_exists( $path );585 $should_delete_tmp_file = !file_exists( $path ); 586 586 $f = @fopen( $path, 'a' ); 587 587 if ( $f === false ) 588 588 return false; 589 589 fclose( $f ); 590 if ( ! $rm)590 if ( $should_delete_tmp_file ) 591 591 unlink( $path ); 592 592 return true;
Note: See TracChangeset
for help on using the changeset viewer.