Update class-wp-json-posts.php