Skip to content

2.6.0: Update Traits from PHP SDK - #127

Draft
n7studios wants to merge 15 commits into
mainfrom
update-traits-from-sdk
Draft

2.6.0: Update Traits from PHP SDK#127
n7studios wants to merge 15 commits into
mainfrom
update-traits-from-sdk

Conversation

@n7studios

@n7studios n7studios commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Restructures the Kit WordPress Libraries as a WordPress mirror of the PHP SDK. API surface, tests, and version numbers now track the SDK; only genuinely WordPress-specific methods and tests stay unique to this repo.

Based on ConvertKitSDK-PHP #155:

  1. Backports SDK 2.6.0 API methods to ConvertKit_API_Traits, adjusted for PHP 7.x (nullable shorthand, positional args, etc.).
  2. Adopts the SDK's TestsTrait verbatim. APITest.php now uses the trait and provides two shims (assertApiError, assertLastResponseStatusCode) that translate SDK-style thrown exceptions into WP_Error assertions. WP-only tests remain in APITest.php / ResourceTest.php / APINoDataTest.php.
  3. Bumps version to 2.6.0 to match the SDK release.

Future SDK updates port over in two steps: copy the changed API methods into ConvertKit_API_Traits (with PHP 7.x tweaks), then copy the SDK's TestsTrait.php into this repo.

Testing

Existing tests pass. This is a large PR which is difficult to review, so tests are also performed on each Kit WordPress Plugin against this branch to confirm no breaking changes:

Checklist

@n7studios n7studios added this to the 2.6.0 milestone Aug 11, 2026
@n7studios n7studios self-assigned this Aug 11, 2026
@n7studios n7studios added the enhancement New feature or request label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant