Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#41736 new defect (bug)

validate_file function will always return error for file paths in windows dev environments

Reported by: lechdulian's profile lechdulian Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Plugins Keywords: has-patch
Focuses: Cc:

Description

In Windows dev environments such as WAMP or XAMPP a file path always contains a colon after a drive letter, so all plugins making conditional checks with validate_file() would fail.

Attachments (1)

41736.patch (972 bytes) - added by subrataemfluence 7 years ago.
Patch considers windows environment file path like c:\folder\filename.ext

Download all attachments as: .zip

Change History (3)

@subrataemfluence
7 years ago

Patch considers windows environment file path like c:\folder\filename.ext

#1 @subrataemfluence
7 years ago

  • Keywords has-patch added

#2 @subrataemfluence
7 years ago

Hi, Welcome to Trac and thanks for the ticket!
I have uploaded a patch. Please can you test whether it works as desired?

Thank you!

Note: See TracTickets for help on using tickets.