Fix undefined variable in 'wp post edit'