Shuntable edit & delete link functions.php

Will make features such as #1572 easier