5.16.0 #33

Merged
Tetrakern merged 51 commits from next_update into main 2024-05-10 00:14:48 +08:00
Showing only changes of commit 33522108f0 - Show all commits

View File

@ -544,11 +544,7 @@ if ( ! current_user_can( 'manage_options' ) ) {
}
// Redirect back to Home
if (
is_admin() &&
// ! ( defined( 'DOING_AJAX' ) && DOING_AJAX )
! current_user_can( 'fcn_admin_panel_access' )
) {
if ( is_admin() && ! current_user_can( 'fcn_admin_panel_access' ) ) {
wp_redirect( home_url() );
exit;
}