Skip to content

Remove legacy Jetpack Social publicize code#25747

Open
crazytonyli wants to merge 9 commits into
trunkfrom
task/jp-social-feature-flag
Open

Remove legacy Jetpack Social publicize code#25747
crazytonyli wants to merge 9 commits into
trunkfrom
task/jp-social-feature-flag

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Note

I recommend reviewing this PR commit by commit.

Description

Jetpack Social v2 (the connection_id-keyed implementation on the wpcom/v2 endpoints) is now the only social sharing implementation in the app. This PR removes the socialSharingV2 feature flag and deletes the legacy rest/v1.1 Publicize implementation, which is all dead code after the AbstractPost migration in #25587.

Here are the main changes in this PR:

  1. The socialSharingV2 feature flag is removed, and the v2 UI is used unconditionally.
  2. The legacy sharing management UI (SharingViewController and friends) is deleted. The two entry points that still pointed at it, the Stats "grow audience" nudge and the dashboard Jetpack Social card, are re-pointed to the v2 screen and deleted respectively. The dashboard card was mostly a share-limit surface, and Jetpack Social no longer has per-post share limits.
  3. The legacy publicize services and remotes are deleted: SharingSyncService, the publicize half of SharingService/SharingServiceRemote (the sharing-buttons half is kept), the keyring remotes in WordPressKit, and the share-limit sync (JetpackSocialService). BlogService no longer syncs any publicize data during blog sync.
  4. The unreachable legacy social section in Post Settings and the keyring-keyed post metadata plumbing (PostHelper+JetpackSocial) are deleted. The v2 path reads and writes _wpas_skip_publicize_<connection_id> post metadata directly and still tolerates the legacy _wpas_skip_<keyringID> scheme on read.

The Core Data entities (PublicizeConnection, PublicizeService, PublicizeInfo) are intentionally NOT removed in this PR. Nothing reads or writes them anymore, but the schema change will land in a dedicated follow-up PR.

@crazytonyli crazytonyli added this to the 27.1 milestone Jul 6, 2026
@crazytonyli crazytonyli requested a review from jkmassel July 6, 2026 05:35
@dangermattic

Copy link
Copy Markdown
Collaborator
2 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@wpmobilebot

wpmobilebot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number33011
VersionPR #25747
Bundle IDorg.wordpress.alpha
Commit7f9fc60
Installation URL598ebbc3ellio
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number33011
VersionPR #25747
Bundle IDcom.jetpack.alpha
Commit7f9fc60
Installation URL7g6bduj0vtgtg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

The Jetpack Social v2 experience is now always enabled.
The v2 social sharing section fully shadows the legacy one: every
condition that produced legacy content also produces the v2 binding, and
PostSettings.sharing was already hardcoded to nil.
The v2 connection management screen replaces SharingViewController
everywhere. The stats insights nudge now opens the v2 screen, and the
dashboard Jetpack Social card is removed along with its promo views.
Deletes the keyring-based connection sync (SharingSyncService), the
publicize half of SharingService/SharingServiceRemote, the share-limit
sync (Jetpack Social no longer has per-post share limits), and the
legacy publicize merge in PostHelper. The sharing-buttons half of both
services is kept. Also removes the now-orphaned
PublicizeInfo.configure(with:) helper in WordPressData, whose only
caller was the deleted JetpackSocialService.
Fixes two stale copy-paste comments in the sharing buttons service and
removes an unused Jetpack Social string from the pre-publishing sheet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants