PHP Warning: sprintf(): Too few arguments
-
Hello Collins, thanks for the plugin!
After 2.2.12 update i am getting
PHP Warning: sprintf(): Too few arguments in (...)\plugins\wp-user-avatar\includes\class-wp-user-avatar-functions.php on line 478
Thats due to lack of
sprintf
escaping of%
https://stackoverflow.com/questions/3666734/php-sprintf-escaping becauseimg src=
may contain%
s in URL-escaped URL…On top of that,
esc_attr( implode( ' ', $class ) )
as a second parameter appends possible$class
es without space before.My hotfixed file: https://gist.github.com/renner108/c63432a257c1d0f1f894b03b668e4974
Thanks again, Jan
- The topic ‘PHP Warning: sprintf(): Too few arguments’ is closed to new replies.