Skip to content

Commit 6c510c4

Browse files
authored
Merge pull request #823 from kprajapatii/master
Restrict wp-admin conflicts with MailPoet manage subscription - FIXED
2 parents e7c1ca7 + d0889c7 commit 6c510c4

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

admin/class-admin.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ public function prevent_admin_access() {
131131

132132
// Checking action in request to allow ajax request go through
133133
if ( ! empty( $restricted_roles ) && is_user_logged_in() && ! wp_doing_ajax() && ! wp_doing_cron() ) {
134+
$action = ! empty( $_POST['action'] ) ? sanitize_text_field( wp_unslash( $_POST['action'] ) ) : '';
135+
136+
/*
137+
* Prevent conflicts with MailPoet plugin.
138+
*/
139+
if ( in_array( $action, array( 'mailpoet_subscription_update' ) ) ) {
140+
return;
141+
}
142+
134143
$roles = wp_get_current_user()->roles;
135144

136145
$prevent = false;

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver
146146

147147
== Changelog ==
148148

149+
= 1.2.36 - 2025-06-TBD =
150+
* Restrict wp-admin conflicts with MailPoet manage subscription - FIXED
151+
149152
= 1.2.35 - 2025-06-12 =
150153
* Close forget password popup after successful form submission - FIXED
151154
* Add nofollow attribute to sorting dropdown links - CHANGED

0 commit comments

Comments
 (0)