[wp-trac] [WordPress Trac] #64638: Editor: Register emoji reactions comment meta for Notes
WordPress Trac
noreply at wordpress.org
Sat Feb 14 07:52:52 UTC 2026
#64638: Editor: Register emoji reactions comment meta for Notes
-----------------------------+-----------------------
Reporter: adamsilverstein | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0
Component: Editor | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-----------------------------+-----------------------
== 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]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64638>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list