make sure return value is string

This commit is contained in:
David Remer 2020-09-02 12:47:53 +03:00
parent 0e45cc5cb6
commit 70d866d53e

View file

@ -811,6 +811,6 @@ class SmartButton implements SmartButtonInterface {
if ( is_bool( $value ) ) {
$value = $value ? 'true' : 'false';
}
return $value;
return (string) $value;
}
}