Fix undefined array notice in access settings

This commit is contained in:
champsupertramp
2016-08-17 12:10:53 +08:00
parent 31192e66e9
commit bc0a18538c
+1 -1
View File
@@ -577,7 +577,7 @@
}
// post restriction
if ( isset( $args['custom_access_settings'] ) || $args['custom_access_settings'] == 1 ) {
if ( isset( $args['custom_access_settings'] ) && $args['custom_access_settings'] == 1 ) {
$redirect_to = null;