-
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
Docs: Undo/Redo: Minor edits #51085
Docs: Undo/Redo: Minor edits #51085
Conversation
@@ -42,13 +42,13 @@ Since the WordPress editors allow multiple entity records to be edited at the sa | |||
|
|||
And to be able to perform both undo and redo operations propertly, each modification in the list of edits contains the following information: | |||
|
|||
- Entity kind and name: Each entity in core-data is identified by a tuple kind, name. This corresponds to the identifier of the modified entity. | |||
- Entity kind and name: Each entity in core-data is identified by the pair _(kind, name)_. This corresponds to the identifier of the modified entity. |
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 chose "pair" to reduce confusion for developers on whether they should actually pass a tuple [ 123, 456 ]
to our API's functions, when actually the pair is always flattened into the rest of the arguments.
@@ -24,7 +24,7 @@ Once the entity is loaded, you can edit it. For example, the following code sets | |||
|
|||
The package also exposes a set of actions to manipulate the fetched entity records. | |||
|
|||
To fetch an entity record, you can call `editEntityRecord`, which takes the entity type, the entity ID and the new entity record as parameters. The following example sets the title of the post with ID 1 to "Hello World". | |||
To edit an entity record, you can call `editEntityRecord`, which takes the entity type, the entity ID and the new entity record as parameters. The following example sets the title of the post with ID 1 to "Hello World". |
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.
This is what prompted me to open the PR; everything else is just nitpicking.
Makes sense. |
Flaky tests detected in 5efbc04. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5119837181
|
Small follow-up of #51052.