fixed bug with post edit

It was impossible to update post in wordpress 3.6.1.