if ( is_admin() || $GLOBALS['pagenow'] == 'wp-login.php' ) { add_action( 'admin_notices', create_function( '', "echo '
" . $failMsg . "
';" ) ); } else { wp_die( $failMsg, '', array( 'response' => 200 ) ); } }