Changeset 9995
- Timestamp:
- 07/02/2020 07:35:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tools/class-filesystem.php
r6026 r9995 28 28 public static function temp_directory( $prefix = '' ) { 29 29 if ( ! is_dir( self::TMP_DIR ) ) { 30 mkdir( self::TMP_DIR, 0777 ); 30 mkdir( self::TMP_DIR ); 31 chmod( self::TMP_DIR, 0777 ); 31 32 } 32 33 … … 36 37 // Replace that filename with a directory. 37 38 unlink( $tmp_dir ); 38 mkdir( $tmp_dir, 0777 ); 39 mkdir( $tmp_dir ); 40 chmod( $tmp_dir, 0777 ); 39 41 40 42 // Automatically remove this temporary directory on shutdown:
Note: See TracChangeset
for help on using the changeset viewer.