Bug: doing_front_end wrong value
-
Hi,
Thanks for this great plugin. I came across due to a topic of a user https://www.ads-software.com/support/topic/qtranslate-x-an-wp-hide?replies=2 mentioning when WP Hide & Security Enhancer is being active no menu is being show for qTranslate X
I was able to replicate this issue, and the file which set the menu is being loaded actually when $url_info[‘doing_front_end’] is being set as FALSE. But when admin url is being set for another slug through our plugin e.g. new-admin, your code is not able to correctly identify if being on front / admin side.
This is quite an easy fix, within qtranslate_core.php line 334 replace the following code$url_info['doing_front_end'] = true;
with
if(defined('WP_ADMIN') ) $url_info['doing_front_end'] = false; else $url_info['doing_front_end'] = true;
This will actually check if being on admin or not, instead just set the variable to an arbitrary True.
Thanks
- The topic ‘Bug: doing_front_end wrong value’ is closed to new replies.