ipstenu is good and ready, repeatedly helped me, advised me very well.
However, when he wrote that snippet, admitted that she wrote it two years ago, I had already released plugins, since 2010, four years ago, they did the same thing ...
However, the snippet is not compatible with the Multisite, IMHO!
My plugin does much more than a simple snippet.
But what matters most is that gives the freedom and ability to choose, what would seem that members of the core team of WordPress, without exception, have lost!
And ... those who want to understand, understand ...
Thanks for reporting on my plugin!