Or, if you prefer, you can see the changes backported to 4.1 directly by wordpress (they release 4.1.9 that you can use as base for debian stable).
Also, if you want to see the patches in git, you can see: https://github.com/WordPress/WordPress/commits/4.1-branch The relevant patch that Salvatore points out, is backported there (in fact, there are only 3 patches in this new 4.1.x release). So, if the patch does not apply cleany, as long as wordpress maintains that branch, you can just apply the patches from there. Thanks a lot, Rodrigo