Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor foreignID to use PostMetadataContainer #24951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kean wants to merge 1 commit into trunk
base: trunk
Choose a base branch
Loading
from task/refactor-foreign-id

Conversation

Copy link
Contributor

@kean kean commented Oct 17, 2025

Refactor foreignID to use PostMetadataContainer introduced in #24946.

It can be tested by setting a breakpoint and saving a post. We do have unit tests coverage as well.

Screenshot 2025年10月17日 at 11 19 27 AM

@kean kean added this to the 26.5 milestone Oct 17, 2025
@kean kean requested a review from crazytonyli October 17, 2025 15:21

extension PostHelper {
@objc public static let foreignIDKey = "wp_jp_foreign_id"
@objc public static let foreignIDKey = PostMetadataContainer.Key.foreignID.rawValue
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still used in one more place – will address later.

Copy link
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 Name WordPress
Configuration Release-Alpha
Build Number 29541
Version PR #24951
Bundle ID org.wordpress.alpha
Commit f3d6613
Installation URL 3a76ptiqln3q8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Copy link
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 Name Jetpack
Configuration Release-Alpha
Build Number 29541
Version PR #24951
Bundle ID com.jetpack.alpha
Commit f3d6613
Installation URL 6f5irr905qgn8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@kean kean enabled auto-merge October 17, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@crazytonyli crazytonyli Awaiting requested review from crazytonyli

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

26.5

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /