I am a bit confused as to why, as of WP 2.6.5, the
get_option()function now strips slashes on all options except for a few hard coded wordpress options. This causes a serious problem when options need to have slashes in them, for example in a preBind username for WPDirAuth. There does not seem to be a way to prevent the
get_option()function from running the returned value through
We are using wpDirAuth in a corporate environment and the preBind username has a \ in it. The plugin wasn’t working with 2.6.5 or 2.7 because
get_option()removed the required backslash. For now, all I can do is hard code the password into the plugin which is NOT a good option.
Is there a way that we can tell
get_option()to NOT run the returned value through
- The topic ‘get_option and stripslashes’ is closed to new replies.