Fields tab a mix of post type and fields, striplslashes fails on Windows
-
On Windows I get warnings on
opendir()
becausestripslashes()
does not remove backslashes. This is a WordPress bug or future enhancement that will be fixed. In the meantime this may be fatal on Windows.This may also be the cause the Post Type Fields tab does not work and seems very confusing.
Use
$path = rtrim( $path, '\\' )
before using a path derived from the system, and these warnings will disappear.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Fields tab a mix of post type and fields, striplslashes fails on Windows’ is closed to new replies.