Changeset 1807617
- Timestamp:
- 01/23/2018 04:27:16 AM (8 years ago)
- Location:
- fix-windows-compatibility
- Files:
-
- 4 added
- 2 edited
-
tags/1.0.0 (added)
-
tags/1.0.0/.htaccess (added)
-
tags/1.0.0/readme.txt (added)
-
tags/1.0.0/windows-compatibility-fix.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/windows-compatibility-fix.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fix-windows-compatibility/trunk/readme.txt
r1650692 r1807617 1 === Windows Compat ability Fix ===1 === Windows Compatibility Fix === 2 2 Contributors: serverpress, spectromtech, davejesch, Steveorevo 3 3 Donate link: http://serverpress.com 4 4 Tags: windows, upgrade, update, plugin, theme, long filename, create, directory, error, desktopserver, edd 5 5 Requires at least: 4.0 6 Tested up to: 4. 7.36 Tested up to: 4.9 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 56 56 57 57 == Changelog == 58 = 1.0.1 - Jan 22, 2017 = 59 * Fix typo in plugin name in readme (Thanks Dave C.) 60 58 61 = 1.0.0 - May 3, 2017 = 59 Initial release to WordPress repository.62 * Initial release to WordPress repository. 60 63 61 64 = 1.0.0 - Mar 29, 2017 = -
fix-windows-compatibility/trunk/windows-compatibility-fix.php
r1650692 r1807617 4 4 Plugin URL: https://serverpress.com/plugins/windows-compatibility-fix 5 5 Description: Fixes long filename problem on Windows systems when doing updates, such as updating from EDD based sites. 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: Dave Jesch 8 8 Author URI: http://serverpress.com … … 43 43 self::_debug( 'filter_unique_filename() long file name: ' . $filename ); 44 44 self::_debug( ' ext=[' . $ext . '] dir=[' . $dir . ']' ); 45 $file = tempnam( $dir, 'w pu' ); // creates a new, guaranteed unique filename with 'wpu' prefix45 $file = tempnam( $dir, 'wcf' ); // creates a new, guaranteed unique filename with 'wcf' prefix 46 46 self::_debug( ' file=' . $file ); 47 47 @unlink( $file ); // remove the file, since we're changing the name by adding an extension … … 60 60 * Used to signal the filter_unique_filename() method to modify the filename if it's too long 61 61 * @param boolean $result Result value. 62 * @param string $package The package URL.62 * @param string $package The package URL. 63 63 * @param WP_Upgrade $wp_upgrader The instance of the WP_Upgrader class calling this filter 64 64 * @return boolean The unmodified $result value.
Note: See TracChangeset
for help on using the changeset viewer.