wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Actions to perform when login via Login module fails
	 *
	 * @since 4.5.4
	 */
Actions to perform when login via Login module fails
@since 4.5.4
Actions to perform when login via Login module fails @since 4 . 5 . 4
function wp_login_failed( $username ) {
		if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) {
			return;
		}
		$referrer = $_SERVER['HTTP_REFERER'];  		
		if ( isset( $_POST['tb_login'], $_POST['tb_redirect_fail'] )  && (int) $_POST['tb_login'] === 1 && ! empty( $referrer ) && ! strstr( $referrer, 'wp-login' ) && ! strstr( $referrer, 'wp-admin' ) ) {
				wp_redirect( $_POST['tb_redirect_fail'] );
				exit;
			}
		}
function wp_login_failed ( $ username ) { if ( ! isset ( $ _SERVER [ 'HTTP_REFERER' ] ) ) { return ; } $ referrer = $ _SERVER [ 'HTTP_REFERER' ] ; if ( isset ( $ _POST [ 'tb_login' ] , $ _POST [ 'tb_redirect_fail' ] ) && ( int ) $ _POST [ 'tb_login' ] === 1 && ! empty ( $ referrer ) && ! strstr ( $ referrer , 'wp-login' ) && ! strstr ( $ referrer , 'wp-admin' ) ) { wp_redirect ( $ _POST [ 'tb_redirect_fail' ] ) ; exit ; } }
Actions to perform when login via Login module fails
 @since 4.5.4
Actions to perform when login via Login module fails @since 4 . 5 . 4
// where did the post submission come from?
 // if there's a valid referrer, and it's not the default log-in screen