Skip to content

Commit 60bff77

Browse files
committed
Don't allow browser caching on wp-admin redirect, fixes #192
1 parent fbe380f commit 60bff77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/actions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ function wpum_restrict_wp_admin_dashboard_access() {
133133

134134
$redirect = apply_filters( 'wpum_restrict_wp_admin_dashboard_access_redirect', home_url() );
135135

136-
wp_redirect( $redirect );
136+
nocache_headers();
137+
wp_safe_redirect( $redirect );
137138
exit;
138139
}
139140

0 commit comments

Comments
 (0)