fix new_post/new_page for PHP

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>