Skip to content

Core Data: Return updated record in saveEntityRecord.#17030

Merged
youknowriad merged 1 commit into
masterfrom
fix/no-return-value-in-save-entity-record
Aug 14, 2019
Merged

Core Data: Return updated record in saveEntityRecord.#17030
youknowriad merged 1 commit into
masterfrom
fix/no-return-value-in-save-entity-record

Conversation

@epiqueras
Copy link
Copy Markdown
Contributor

Description

This PR makes saveEntityRecord from core-data return the updated record like it did before #16867. Some plugins expect this behavior and the change was not backwards compatible.

How has this been tested?

A test case was added for this behavior to avoid regressions.

Types of Changes

Bug Fix: Rollback breaking change of not returning the updated record in saveEntityRecord from core-data.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@epiqueras epiqueras added the [Package] Core data /packages/core-data label Aug 14, 2019
@epiqueras epiqueras added this to the Gutenberg 6.3 milestone Aug 14, 2019
@epiqueras epiqueras self-assigned this Aug 14, 2019
@youknowriad youknowriad merged commit be7db4f into master Aug 14, 2019
@youknowriad youknowriad deleted the fix/no-return-value-in-save-entity-record branch August 14, 2019 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Core data /packages/core-data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants