[wp-trac] [WordPress Trac] #64638: Register emoji reactions comment meta for Notes (was: Editor: Register emoji reactions comment meta for Notes)
WordPress Trac
noreply at wordpress.org
Wed May 20 05:16:04 UTC 2026
#64638: Register emoji reactions comment meta for Notes
-------------------------------------------------+-------------------------
Reporter: adamsilverstein | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests gutenberg- | Focuses:
merge |
-------------------------------------------------+-------------------------
Changes (by desrosj):
* version: trunk =>
Old description:
> == Summary
>
> Register the `_wp_note_reactions` comment meta in
> `wp_create_initial_comment_meta()`, alongside the existing
> `_wp_note_status` meta. This meta stores emoji reaction data for the
> block editor's collaborative Notes feature.
>
> == Data Model
>
> Each emoji key (e.g., `"👍"`, `"❤️"`) maps to an array of reaction
> objects:
>
> {{{#!json
> {
> "👍": [
> { "userId": 1, "date": "2025-01-15T10:30:00" },
> { "userId": 2, "date": "2025-01-15T11:00:00" }
> ],
> "❤️": [
> { "userId": 1, "date": "2025-01-15T10:35:00" }
> ]
> }
> }}}
>
> == REST Schema
>
> * **Type:** `object`
> * **Single:** `true`
> * **Default:** `[]` (empty array)
> * **`additionalProperties`:** Each property is an array of objects with:
> * `userId` (integer) — The reacting user's ID
> * `date` (string|null, date-time format) — When the reaction was added
>
> == Auth
>
> Uses the same `edit_comment` capability check as `_wp_note_status`.
>
> == Changes
>
> * Updated `wp_create_initial_comment_meta()` in `src/wp-
> includes/comment.php` to register `_wp_note_reactions` meta.
> * Updated docblock with `@since 7.0.0` tag.
> * Regenerated `tests/qunit/fixtures/wp-api-generated.js`.
>
> == References
>
> * Gutenberg PR: [https://github.com/WordPress/gutenberg/pull/75148
> #75148]
> * wordpress-develop PR: [https://github.com/WordPress/wordpress-
> develop/pull/10930 #10930]
New description:
== Summary
Register the `_wp_note_reactions` comment meta in
`wp_create_initial_comment_meta()`, alongside the existing
`_wp_note_status` meta. This meta stores emoji reaction data for the block
editor's collaborative Notes feature.
== Data Model
Each emoji key (e.g., `""`, `""`) maps to an array of reaction objects:
{{{#!json
{
"": [
{ "userId": 1, "date": "2025-01-15T10:30:00" },
{ "userId": 2, "date": "2025-01-15T11:00:00" }
],
"": [
{ "userId": 1, "date": "2025-01-15T10:35:00" }
]
}
}}}
== REST Schema
* **Type:** `object`
* **Single:** `true`
* **Default:** `[]` (empty array)
* **`additionalProperties`:** Each property is an array of objects with:
* `userId` (integer) — The reacting user's ID
* `date` (string|null, date-time format) — When the reaction was added
== Auth
Uses the same `edit_comment` capability check as `_wp_note_status`.
== Changes
* Updated `wp_create_initial_comment_meta()` in `src/wp-
includes/comment.php` to register `_wp_note_reactions` meta.
* Updated docblock with `@since 7.0.0` tag.
* Regenerated `tests/qunit/fixtures/wp-api-generated.js`.
== References
* Gutenberg PR: [https://github.com/WordPress/gutenberg/pull/75148 #75148]
* wordpress-develop PR: [https://github.com/WordPress/wordpress-
develop/pull/10930 #10930]
--
Comment:
Since this is an enhancement, there's no first version of WordPress this
can be reproduced in. Removing `trunk` version.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64638#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list