From 60458f763786cc314d93d288335ad3259c6179e4 Mon Sep 17 00:00:00 2001 From: ozh Date: Wed, 11 Dec 2013 18:31:57 +0100 Subject: [PATCH] Don't check for spam when installing. Fixes #1558. --- includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 70abaeb..5c704e4 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1264,9 +1264,11 @@ function yourls_check_IP_flood( $ip = '' ) { yourls_do_action( 'pre_check_ip_flood', $ip ); // at this point $ip can be '', check it if your plugin hooks in here + // Raise white flag if installing or if no flood delay defined if( ( defined('YOURLS_FLOOD_DELAY_SECONDS') && YOURLS_FLOOD_DELAY_SECONDS === 0 ) || - !defined('YOURLS_FLOOD_DELAY_SECONDS') + !defined('YOURLS_FLOOD_DELAY_SECONDS') || + yourls_is_installing() ) return true; -- 2.45.0