I'm reading Leary's Mathematical Logic text where it defines the phrase "substitutable" and most of it is sensible:
$t$ is substitutable for $x$ in $\phi$ if
$\phi$ is atomic.
$\phi := \neg \alpha$ and $t$ is substitutable for $x$ in $\alpha$.
$\phi := \alpha \lor \beta$ and $t$ is substitutable for $x$ in both $\alpha$ and $\beta$.
$\phi := (\forall y)\alpha$ and either
a. $x$ is not free in $\phi$ or
b. $y$ does not occur in $t$ and $t$ substitutable for $x$ in $\alpha$.
All of this except 4.a. makes sense to me, but why would you want $x$ not free in $\phi$? I mean you could have $\phi = (\forall x)(Px)$ so that $x$ is not free in $\phi$ but you would think this is the precise case where you don't want to say that $t$ is substitutable for $x$, right? (Here I take $x=y$, and it is common for Leary to use variables to possibly take as a value other variables.)
From the material earlier in the book I don't think the intention here is to say that, in such a case, $\phi_t^x = (\forall t)(Pt)$ because, for one thing, this is not what follows from the definition of substitution given earlier and for another thing he is trying to allow for $t$ to be functions of terms---and nowhere in the book does he write something like $(\forall f(c))(P(f(c))$.