fix `wp post edit`

see #779