-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Skip 'Site Updated' message if only post meta was saved #62284
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,7 +203,7 @@ export const saveDirtyEntities = | |
registry | ||
.dispatch( noticesStore ) | ||
.createErrorNotice( __( 'Saving failed.' ) ); | ||
} else { | ||
} else if ( ! values.every( ( value ) => value.metaChange ) ) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. metaChange is not the only thing that should prevent the "site updated" notice. I think we should think about this notice a bit more holistically. Should we show "site updated" when we change just a single entity (like a page or post or a template) or something? Maybe we should try to be smarter here. If the "pendingRecords" is a single entity we just show There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I decided to try a simpler approach in #63223, related comment here, let me know what you think 🙏 |
||
registry | ||
.dispatch( noticesStore ) | ||
.createSuccessNotice( __( 'Site updated.' ), { | ||
|
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 don't think we should touch core-data for this change. I think core-data shouldn't have flags like that that are specific to given entities.