Closed johnstonphilip closed 4 years ago
@johnstonphilip I'm struggling to reproduce the original error at the moment. 🤷♂
So far I don't see, "Too few arguments in simple-social-icons.php on line 458" by default with the current develop branch using the repro steps above (PHP 7.4.3, WP 5.4). Where do you see %
in the URL? Do your social icons widget URIs include special characters of some kind?
Your fix looks good. I'm just curious to learn why we haven't seen this until now.
I'm struggling to reproduce the original error at the moment.
I'm also struggling to reproduce this.
Oh I found it. It's because I have a space in my plugin name, due to accidentally cloning the plugin twice
http://php5.local/wp-content/plugins/simple-social-icons 2/symbol-defs.svg#social-behance
That space is getting converted to a % sign, and thus triggering sprintf
Fixes #107
How to test
To Reproduce Steps to reproduce the behavior:
Warning: sprintf(): Too few arguments in simple-social-icons.php on line 458
To test the fix Steps to test the fix:
fix/sprintf-issue
Documentation
No documentation required.
Suggested changelog entry