Do not use the alternative if/elseif/else syntax in `prepend_attachment()` introduced in [27622], as per kovshenin.

Fixes #27243.



git-svn-id: https://develop.svn.wordpress.org/trunk@27682 602fd350-edb4-49c9-b593-d223f7449a82