Fix /pages references in WP_JSON_CustomPostType