Coming from #936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls
Comment #224:

"has #48 been addressed? I tried the patch in #213 and #48 seems not addressed yet. I'm changing the status to needs work.

How to reproduce the issue:
1. Uncheck pathauto and add alias for a particular node / term
2. Bulk delete aliases and check that the custom alias for the node / term is deleted
3. Bulk generate aliases and check that pathauto is still unchecked and no aliases are generated (this is with patch #213)

I believe when we bulk delete aliases we should check if the state is 0, we don't delete the aliases. Is this correct? If yes, I'll see what I can do when I have some spare time."