Title: Code error in plugin file
Last modified: December 1, 2021

---

# Code error in plugin file

 *  [wp_smith](https://wordpress.org/support/users/wp_smith/)
 * (@wp_smith)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/code-error-in-plugin-file/)
 * Hi,
 * When I was looking into the display of WP 2FA settings forms in the backend profile
   pages, because I was not satisfied with this display, and in the course of this
   looked at the corresponding action hooks, I came across a logical error in the
   program code.
 * In file `/wp-2fa/includes/classes/WP2FA.php, lines 203 and 204` it says:
 *     ```
       global $pagenow;
       if ( 'profile.php' !== $pagenow || 'user-edit.php' !== $pagenow )
       ```
   
 * as condition for the display of the “inline_2fa_profile_form”.
 * This is a logical error because this condition always occurs, and thus is not
   a condition.
 * Maybe, if I am not wrong, you can correct the error in the next plugin version.
 * Concerning the causes of the incorrect display of the backend profile WP 2FA 
   settings that occurred in my environment, I have to do further research.
 * Thanks for Your efforts,
 * Christian

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/code-error-in-plugin-file/#post-15126866)
 * Thank you for using our plugin and for posting this issue [@wp_smith](https://wordpress.org/support/users/wp_smith/)
 * We will look into it and will update the ticket with the findings and answer.
 * In the meantime, if there is anything else we can help you with, please do not
   hesitate to ask.
 * Have a good day.
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/code-error-in-plugin-file/#post-15138684)
 * Hello [@wp_smith](https://wordpress.org/support/users/wp_smith/)
 * We can confirm that indeed, there is a problem. We will address this issue in
   the next update of the plugin.
 * Sorry if this has caused an inconvenience. In the meantime, please let us know
   if there is anything else we can help you with.
 * Have a good day.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code error in plugin file’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/code-error-in-plugin-file/#post-15138684)
 * Status: not resolved