Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by

I can't use the same DB as my Wordpress install, so using "define('QA_WORDPRESS_INTEGRATE_PATH', '/PATH/TO/WORDPRESS');" to integrate with Wordpress is out of the question.

I simply want to make use of a few WP functions to get the WP menus in my custom QA theme.

Adding require '../wp-load.php'; to QA's index.php works great. However, all input seems to be escaped when submitting a question or answer.

For example:

Joe's test question.

Turns into:

Joe\'s test question.

Why does requiring wp-load.php do this? Can anyone point me in the right direction on how to resolve this?


Q2A version: 1.5.4
Looks like WP uses magic quotes on GET and POST vars and Q2A "fixes" this  ( qa-base.php lines 203 - 220).

I can hack qa-base.php to use the function qa_undo_wordpress_quoting, but is there any other way?

Please log in or register to answer this question.