Title: intempestive redirection when accessing admin-post.php
Last modified: March 29, 2024

---

# intempestive redirection when accessing admin-post.php

 *  Resolved [Willy Bahuaud](https://wordpress.org/support/users/willybahuaud/)
 * (@willybahuaud)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/intempestive-redirection-when-accessing-admin-post-php/)
 * Hello,
   I found a bug into the file `includes/settings.php`, in the function `
   block_enhancements_activation_redirect()`.
 * Here, an unconnected user who arrives via an `admin_post_nopriv_` action (wp-
   admin/admin-post.php) will enter the condition and be redirected to the settings(
   rather than triggering the expected action). To correct this you simply have 
   to add `is_user_logged_in()` at the start of the condition.
   Can you fix this,
   please?

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

 *  Plugin Author [Phi Phan](https://wordpress.org/support/users/mr2p/)
 * (@mr2p)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/intempestive-redirection-when-accessing-admin-post-php/#post-17538869)
 * Hello Willy [@willybahuaud](https://wordpress.org/support/users/willybahuaud/),
 * Thank you for reporting it. I will fix it in the next version.
 * Phi.
 *  Plugin Author [Phi Phan](https://wordpress.org/support/users/mr2p/)
 * (@mr2p)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/intempestive-redirection-when-accessing-admin-post-php/#post-17540296)
 * Hi Willy [@willybahuaud](https://wordpress.org/support/users/willybahuaud/), 
   I have fixed the issue in the latest version 1.2.1. Thank you once again for 
   reporting it.
 * Phi.

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

The topic ‘intempestive redirection when accessing admin-post.php’ is closed to 
new replies.

 * ![](https://ps.w.org/block-enhancements/assets/icon.svg?rev=2707439)
 * [Block Enhancements – Extended styling for the Block Editor](https://wordpress.org/plugins/block-enhancements/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-enhancements/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-enhancements/)
 * [Active Topics](https://wordpress.org/support/plugin/block-enhancements/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-enhancements/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-enhancements/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Phi Phan](https://wordpress.org/support/users/mr2p/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/intempestive-redirection-when-accessing-admin-post-php/#post-17540296)
 * Status: resolved