Critical Error metadata-sensor type string, int given
-
I have an LMS that uses integers as meta_keys.
This throws a critical error when wp-security-audit-log attempts string functions.I would like to suggest the following changes for a future update to resolve this:
wp-security-audit-log/classes/WPSensors/class-wp-metadata-sensor.php:597
if ( ‘_’ === substr( (string)$meta_key, 0, 1 ) ) {wp-security-audit-log/classes/WPSensors/class-wp-metadata-sensor.php:568
if ( false !== strpos( (string)$meta_key, ‘shipping_’ ) || false !== strpos( (string)$meta_key, ‘billing_’ ) ) {wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-public-sensor.php:123
$address_key = str_replace( array( ‘shipping_’, ‘billing_’ ), ”, (string)$meta_key );wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php:5553
$address_key = str_replace( array( ‘shipping_’, ‘billing_’ ), ”, (string)$meta_key );
The topic ‘Critical Error metadata-sensor type string, int given’ is closed to new replies.