[Bug] ‘wp_pre_insert_user_data’ in wpcerber_load.php
-
There is a bug in wpcerber_load.php in the ‘wp_pre_insert_user_data’ filter. The problem is, that the code assumes $data[‘user_login’] and $data[‘user_email’] are present, while this might not the case, as filters with lower priority might have wiped them out (which I’m actually doing in order to stop the registration in some circumstances) and because of this – WP Cerber crashes the whole process. A workaround for this is to override WP Cerber by adding the custom filter with PHP_INT_MAX priority, but it is not nice. Better would be if you just do the checks if those two are present in the array (and if the $data is an array altogether at first place).
- The topic ‘[Bug] ‘wp_pre_insert_user_data’ in wpcerber_load.php’ is closed to new replies.