Backslashes caused by function calls WordPress
-
Hello guys,
Excuse my English please.
WordPress is installed in a directory “blog”, and my site is located at the root.
To view the user ID and a link to WordPress disconnection on the homepage of my site, I initialize WordPress functions in the header of my site with this code:
/ / Call functions wordpress
require ( ‘blog / wp-config.php’);
$ wp-> init ();
$ wp-> parse_request ();
$ wp-> query_posts ();
$ wp-> register_globals ();The problem is that calling these functions impact on the forms for my site and adds backslashes to data sent by my forms: “l’aigle” becomes “l\’aigle”.
If I disable the function calls of WordPress, the problem is resolved. Unfortunately, I need these functions …Add that magic_quotes are disabled on my server.
Do you know a solution to this problem backslash, or to display the username WordPress and a link disconnection without function calls WordPress?
Thank you!
The topic ‘Backslashes caused by function calls WordPress’ is closed to new replies.