-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix an issue with post excerpt not reloading in the list #23232
Conversation
post = [blog lookupPostWithForeignID:foreignID inContext:context]; | ||
} else { | ||
post = [blog lookupPostWithID:remotePost.postID inContext:context]; | ||
AbstractPost *post = [blog lookupPostWithID:remotePost.postID inContext:context]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started testing by looking into this area. The first lookup that should happen is the postID
lookup. The current version performs only a foreignID
lookup. I can't come up with scenarios where this might be an issue, but it's better to keep the postID
logic in place.
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
override func didChangeValue(forKey key: String) { | ||
super.didChangeValue(forKey: key) | ||
|
||
if key == "mt_excerpt" || key == "content" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turned out to be not enough. I decided to remove caching for now to be safe.
To test:
Regression Notes
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: