By Pitcrawler/Treeston, closes #17930 (cherry picked from commit 96a74aa8d775b5c8c3df7f17c55b0197db0511ca)