Skip to content

Notes: Tolerate a null comment in the reaction cascade hooks - #85959

Merged
adamsilverstein merged 5 commits into
trunkfrom
fix/note-reactions-null-comment
Nov 2, 2026
Merged

adamsilverstein merged 5 commits into
trunkfrom
fix/note-reactions-null-comment

Conversation

@adamsilverstein

@adamsilverstein adamsilverstein commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Reported by @aduth from WordPress.com running 24.3.0: intermittent fatals from the reaction cleanup added in #76767.

Claude chased this down and drafted the write-up below:

What?

Fixes #85958

Drop the WP_Comment type hint from the two reaction cascade callbacks in lib/compat/wordpress-7.2/note-reactions.php and guard with instanceof instead.

Why?

Since 24.3.0 (#76767) gutenberg_delete_note_reactions() is hooked to delete_comment with a required WP_Comment $comment parameter. Core always passes a WP_Comment, but plugins fire this action too. Akismet's scheduled spam purge (Akismet::delete_old_comments()) loops over stale spam IDs and fires delete_comment with whatever get_comment() returned for each row, which is null once the row is already gone:

Uncaught TypeError: gutenberg_delete_note_reactions(): Argument #2 ($comment) must be of type WP_Comment, null given

That makes the fatal intermittent and unrelated to anything happening in the editor - it fires from cron whenever the purge hits a missing row. gutenberg_trash_note_reactions() on trashed_comment has the same latent problem, so both callbacks are fixed together.

How?

Both callbacks now accept an untyped $comment and bail unless it is a WP_Comment of type note. Hook arguments are untrusted input, so the guard belongs in the callback rather than in the type signature. The docblocks note why.

Testing Instructions

Test in WordPress Playground

The new PHPUnit test test_reaction_cascade_tolerates_missing_comment fires both hooks with null the way Akismet does; it errors with the reported TypeError on trunk and passes with this change:

npm run test:unit:php:base -- --filter WP_Test_REST_Comments_Controller_Gutenberg

To reproduce by hand, run this in a mu-plugin or via wp eval on trunk, then again on this branch:

do_action( 'delete_comment', '999999', null );

Trunk fatals, this branch does nothing. Adding a reaction to a note and then permanently deleting the note should still remove the reaction (covered by the existing test_permanently_deleting_note_deletes_its_reactions).

The core companion for reactions (WordPress/wordpress-develop#10930) is closed, so there is nothing to mirror there yet.

AI Use

Claude Code did the digging and the typing here, I did the asking. I will review and test.

🤖 Generated with Claude Code

https://claude.ai/code/session_018vwYjUqCAfR2YsjK2meeJk

Akismet's spam purge fires `delete_comment` and `trashed_comment` with the
result of `get_comment()`, which is null once the row is gone. The
`WP_Comment` type hint on the reaction cascades turned that into a fatal
TypeError on every purge run, so guard with `instanceof` instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018vwYjUqCAfR2YsjK2meeJk
@adamsilverstein adamsilverstein added [Type] Bug An existing feature does not function as intended [Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting labels Oct 29, 2026
@adamsilverstein adamsilverstein added [Type] Bug An existing feature does not function as intended [Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting labels Oct 29, 2026
@adamsilverstein adamsilverstein self-assigned this Oct 29, 2026
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>
Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric ad190ce trunk % Change
timeToFirstByte 54.2 ms +18.82% -1.94% 56.9 ms +13.62% -5.71% -4.75%
largestContentfulPaint 96 ms +4.17% -8.33% 98 ms +2.04% -10.2% -2.04%
lcpMinusTtfb 35.4 ms +20.76% -3.67% 34.7 ms +13.26% -7.35% 2.02%
wpBeforeTemplate 28 ms +25.79% -1.82% 28.84 ms +21.46% -4.68% -2.91%
wpTemplate 22.13 ms +4.11% -2.89% 22.39 ms +5.58% -6.34% -1.16%
wpTotal 50.18 ms +18.85% -1.91% 52.65 ms +11.09% -5.79% -4.69%
wpMemoryUsage 7.70 MB +0% -0% 7.67 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric ad190ce trunk % Change
timeToFirstByte 45.7 ms +7.99% -3.28% 45.65 ms +9.53% -3.4% 0.11%
largestContentfulPaint 100 ms +10% -0% 100 ms +4% -2% 0%
lcpMinusTtfb 55.4 ms +8.39% -3.25% 54.35 ms +1.84% -3.77% 1.93%
wpBeforeTemplate 24.5 ms +11.76% -3.27% 24.33 ms +21.91% -1.73% 0.7%
wpTemplate 17.03 ms +2.88% -2.52% 17.02 ms +4.76% -1.65% 0.06%
wpTotal 42.04 ms +9.37% -2.95% 42.23 ms +9.12% -3.48% -0.45%
wpMemoryUsage 6.40 MB +0% -0% 6.36 MB +0% -0% 0.53%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric ad190ce trunk % Change
mediaProcessingJpeg 417.16 ms +1.17% -0.69% 415.98 ms +0.86% -0.36% 0.28%
mediaProcessingAvif 6226.88 ms +0.63% -0.33% 6217.06 ms +0.03% -0.15% 0.16%
mediaProcessingJpegToAvif 4348.76 ms +0.07% -0.15% 4356.72 ms +0.15% -0.09% -0.18%

media-upload

Metric ad190ce trunk % Change
jpegUploadProcessing 1962.2 ms +0.93% -25.16% 1935.07 ms +1.19% -22.64% 1.4%
pngUploadProcessing 197.56 ms +24.84% -8.8% 240.73 ms +7.91% -20.22% -17.93%
largeJpegUploadProcessing 1945.25 ms +0.3% -24.23% 1724.4 ms +13.34% -14.56% 12.81%
multipleImageUploadProcessing 2036.74 ms +0.44% -0.86% 2048 ms +0.29% -0.6% -0.55%

post-editor

Metric ad190ce trunk % Change
serverResponse 361.52 ms +2.61% -10.6% 331.41 ms +7.53% -7.2% 9.09%
firstPaint 241.07 ms +82.33% -36.19% 227.04 ms +9.99% -17.54% 6.18%
domContentLoaded 701.88 ms +3.07% -1.24% 691.05 ms +2.41% -0.23% 1.57%
loaded 703.11 ms +3.06% -1.25% 692.16 ms +2.38% -0.26% 1.58%
firstContentfulPaint 413.27 ms +7.43% -2.23% 411.52 ms +3.85% -4.28% 0.43%
firstBlock 2299.19 ms +3.21% -2.02% 2229.43 ms +4.87% -0.74% 3.13%
type 16.56 ms +5.74% -9.78% 15.62 ms +0.32% -10.82% 6.02%
typeWithoutInspector 17.35 ms +4.9% -14.76% 14.87 ms +10.02% -9.15% 16.68%
typeWithTopToolbar 22.28 ms +6.6% -9.25% 19.63 ms +3.36% -13.04% 13.5%
typeContainer 7.37 ms +5.97% -6.38% 6.8 ms +7.79% -5.88% 8.38%
focus 101.62 ms +7.82% -4.78% 93.28 ms +7.48% -5.96% 8.94%
firstFocus 231.71 ms +0% -0% 179.14 ms +0% -0% 29.35%
selectAll 376.57 ms +1.76% -3.78% 349.78 ms +7.3% -0.89% 7.66%
undo 26.25 ms +9.22% -2.44% 25.3 ms +12.81% -4.94% 3.75%
listViewOpen 64.18 ms +2.6% -6.92% 56.67 ms +5.22% -8.29% 13.25%
inserterOpen 34.14 ms +6.91% -3.31% 34.39 ms +3.49% -10.9% -0.73%
inserterHover 10.06 ms +8.75% -6.26% 9.38 ms +3.2% -8% 7.25%
inserterSearch 7.45 ms +6.44% -3.36% 7.62 ms +5.38% -8.01% -2.23%
loadPatterns 551.3 ms +13.92% -2.84% 501.78 ms +2.58% -3.45% 9.87%
wpTotal 351.25 ms +3.03% -10.55% 322.48 ms +7.73% -7.36% 8.92%
wpMemoryUsage 14.73 MB +0% -0% 14.72 MB +0% -0% 0.1%
wpDbQueries 55 +0% -1.82% 55 +0% -0% 0%

site-editor

Metric ad190ce trunk % Change
serverResponse 379.93 ms +1.29% -1.32% 369.1 ms +3.73% -7.63% 2.93%
firstPaint 229.24 ms +14.17% -11.85% 224.78 ms +10.21% -7.32% 1.98%
domContentLoaded 787.4 ms +1.25% -1.65% 778.07 ms +3.82% -1.34% 1.2%
loaded 788.36 ms +1.25% -1.65% 779.04 ms +3.81% -1.3% 1.2%
firstContentfulPaint 447.97 ms +2.82% -1.78% 443.72 ms +8.44% -1.94% 0.96%
firstBlock 3503.79 ms +0.73% -2.05% 3482.9 ms +0.86% -1.09% 0.6%
type 19.97 ms +3.91% -5.26% 19.47 ms +14.69% -12.74% 2.57%
navigate 101.33 ms +11.72% -2.06% 105.58 ms +13.17% -5.05% -4.03%
loadPatterns 1069.17 ms +16.03% -6.67% 1044.77 ms +4.5% -4.63% 2.34%
loadPages 1021.47 ms +3.2% -0.56% 1014.94 ms +1.15% -3.11% 0.64%
wpTotal 370.76 ms +1.44% -1.49% 360.37 ms +3.23% -7.84% 2.88%
wpMemoryUsage 12.77 MB +0% -0% 12.73 MB +0% -0% 0.27%
wpDbQueries 44 +2.27% -0% 44 +2.27% -0% 0%

c2b6ed6 Run

🏁 Flaky tests

Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

As a user I want to be able to add multiple close buttons so that users can close the overlay from different positions in /test/e2e/specs/site-editor/navigation-overlay-template-part.spec.js, passed after 1 failed attempt.
Error: expect(locator).toHaveCount(expected) failed

Locator:  getByRole('button', { name: 'Close' })
Expected: 2
Received: 1
Timeout:  5000ms

Call log:
  - Expect "toHaveCount" getByRole('button', { name: 'Close' }) with timeout 5000ms
  - waiting for getByRole('button', { name: 'Close' })
    14 × locator resolved to 1 element
       - unexpected value "1"

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-overlay-template-part.spec.js:228:33
Backspace in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 28
+ Received  +  2

  Array [
    Object {
-     "innerBlocks": Array [
-       Object {
-         "attributes": Object {
-           "content": "1",
-         },
-         "innerBlocks": Array [
-           Object {
-             "innerBlocks": Array [
-               Object {
-                 "attributes": Object {
-                   "content": "a‸2",
-                 },
-                 "name": "core/list-item",
-               },
-               Object {
-                 "attributes": Object {
-                   "content": "b",
-                 },
-                 "name": "core/list-item",
-               },
-             ],
-             "name": "core/list",
-           },
-         ],
-         "name": "core/list-item",
-       },
-     ],
-     "name": "core/list",
+     "innerBlocks": Array [],
+     "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:2041:42
Undo restores the post selection when another synced entity is loaded (RTC WebSocket) in /test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

  Object {
    "attributeKey": "content",
    "blockIndex": 0,
    "content": "abcdef",
-   "endOffset": 3,
-   "offset": 3,
+   "endOffset": 6,
+   "offset": 6,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts:363:5
can be converted when nested to paragraphs in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Indent"]')

    at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:17:15)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:410:3
does not select blocks in the canvas preview when editing from the sidebar (Site Editor v2) in /test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeFocused() failed

Locator: getByRole('combobox', { name: 'Search or type URL' })
Expected: focused
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeFocused" getByRole('combobox', { name: 'Search or type URL' }) with timeout 5000ms
  - waiting for getByRole('combobox', { name: 'Search or type URL' })

    at LinkControl.useLinkControlSearch (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js:416:47)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js:179:21
should add and remove styles from referenced style sheets in /test/e2e/specs/interactivity/router-styles.spec.ts, passed after 1 failed attempt.
Error: apiRequestContext.fetch: socket hang up
Call log:
  - → DELETE http://localhost:8889/wp-json/wp/v2/posts/224?force=true
    - user-agent: Playwright/1.63.0 (x64; ubuntu 24.04) node/24.20 CI/1
    - accept: */*
    - accept-encoding: gzip,deflate,br
    - X-WP-Nonce: 9e704943a1
    - cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1793465798%7CWamkNweEeRXI8ev3Ink7wEgXl4oRotQDYu8bAe2QNBI%7Cef044f059ce5768794d422a94c511f228d1952568c0d2391f71143f46af2f97e; wp-settings-time-1=1793293424

    at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:111:39)
    at map (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:44:9)
    at RequestUtils.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:43:9)
    at InteractivityUtils.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:91:3)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-styles.spec.ts:58:3
should cut and paste individual blocks with collapsed selection in /test/e2e/specs/editor/various/copy-cut-paste.spec.js, passed after 1 failed attempt.
Error: expect(string).toMatchSnapshot(expected) failed

  @@ -1,3 +1,3 @@
   <!-- wp:paragraph -->
  -<p>2Cut - collapsed selection</p>
  +<p>2</p>
   <!-- /wp:paragraph -->


    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:45:49
should gradually multi-select in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 3
+ Received  + 7

  Array [
    Object {
-     "name": "core/column",
+     "attributes": Object {
+       "content": "1",
+       "dropCap": false,
      },
-   Object {
-     "name": "core/column",
+     "clientId": "705d0f95-b20a-475c-a1a3-a7b483387b50",
+     "innerBlocks": Array [],
+     "isValid": true,
+     "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:1200:5
should indent with Space and outdent with Shift+Space at the start in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 7
+ Received  + 7

  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>a<!-- wp:list -->
- <ul class="wp-block-list"><!-- wp:list-item -->
- <li>b</li>
+ <li></li>
+ <!-- /wp:list-item --></ul>
- <!-- /wp:list-item --></ul>
+ <!-- /wp:list -->
+
- <!-- /wp:list --></li>
- <!-- /wp:list-item --></ul>
+ <!-- wp:paragraph -->
+ <p> b</p>
- <!-- /wp:list -->
+ <!-- /wp:paragraph -->

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:875:52
should merge a following sibling list into the outermost list with Delete from a nested item (#77245) in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

@@ -8,11 +8,11 @@
          "innerBlocks": Array [
            Object {
              "innerBlocks": Array [
                Object {
                  "attributes": Object {
-                   "content": "b‸",
+                   "content": "b",
                  },
                  "name": "core/list-item",
                },
              ],
              "name": "core/list",
@@ -25,11 +25,11 @@
    },
    Object {
      "innerBlocks": Array [
        Object {
          "attributes": Object {
-           "content": "1",
+           "content": "‸1",
          },
          "innerBlocks": Array [
            Object {
              "innerBlocks": Array [
                Object {

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:2854:41
should not have a dead zone above an aligned block in /test/e2e/specs/editor/various/writing-flow.spec.js, passed after 1 failed attempt.
TypeError: Cannot read properties of null (reading 'y')
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:1053:39
should outdent list items when deleting an empty parent at the top in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  -  0
+ Received  + 19

@@ -1,18 +1,37 @@
  Array [
    Object {
      "innerBlocks": Array [
        Object {
          "attributes": Object {
+           "content": "",
+         },
+         "innerBlocks": Array [
+           Object {
+             "attributes": Object {
+               "ordered": false,
+               "values": "",
+             },
+             "innerBlocks": Array [
+               Object {
+                 "attributes": Object {
                    "content": "a",
                  },
+                 "innerBlocks": Array [],
                  "name": "core/list-item",
                },
                Object {
                  "attributes": Object {
                    "content": "b",
                  },
+                 "innerBlocks": Array [],
+                 "name": "core/list-item",
+               },
+             ],
+             "name": "core/list",
+           },
+         ],
          "name": "core/list-item",
        },
      ],
      "name": "core/list",
    },

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:3074:41
should outdent with children in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Indent"]')

    at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:17:15)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1055:3
should replace selected non-breaking spaces from the toolbar in /test/e2e/specs/editor/various/rich-text.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 1
+ Received  + 1

  Array [
    Object {
      "attributes": Object {
-       "content": "one two three",
+       "content": "e two three",
      },
      "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:1053:41
should select by dragging in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.

Truncated. See the full report.

c2b6ed6 Run

@adamsilverstein adamsilverstein added Backport to Gutenberg RC Pull request that needs to be backported to a Gutenberg release candidate (RC) Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Oct 29, 2026
adamsilverstein and others added 2 commits October 29, 2026 09:18
The `WP_Comment|null` param type already says the comment may be missing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018vwYjUqCAfR2YsjK2meeJk
@adamsilverstein adamsilverstein removed Backport to Gutenberg RC Pull request that needs to be backported to a Gutenberg release candidate (RC) Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Oct 29, 2026
Co-authored-by: Weston Ruter <westonruter@gmail.com>

@westonruter westonruter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some typing nits for tests, but LGTM

@adamsilverstein

Copy link
Copy Markdown
Member Author

Thanks @westonruter!

Co-authored-by: Weston Ruter <westonruter@gmail.com>

@Mamaduka Mamaduka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @adamsilverstein and @westonruter!

Does this need a core backport?

@aduth

aduth commented Nov 2, 2026

Copy link
Copy Markdown
Member

@adamsilverstein Is this good to merge? @jsnajdr may be preparing for a patch release including #86159 and it would be nice to include this as well.

@adamsilverstein

Copy link
Copy Markdown
Member Author

@aduth this is approved and can get merged.

Does this need a core backport?

@Mamaduka no- core handles this differently, not on a hook.

@adamsilverstein adamsilverstein added the No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core label Nov 2, 2026
@adamsilverstein
adamsilverstein merged commit 35054c4 into trunk Nov 2, 2026
88 of 89 checks passed
@adamsilverstein
adamsilverstein deleted the fix/note-reactions-null-comment branch November 2, 2026 17:23
@github-actions github-actions Bot added this to the Gutenberg 24.4 milestone Nov 2, 2026
@adamsilverstein

Copy link
Copy Markdown
Member Author

@adamsilverstein Is this good to merge? @jsnajdr may be preparing for a patch release including #86159 and it would be nice to include this as well.

@aduth I merged this then realized I wasn't sure if it needed a special label to get into the release.

@Mamaduka Mamaduka added the Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Nov 2, 2026
@Mamaduka

Mamaduka commented Nov 2, 2026

Copy link
Copy Markdown
Member

Added a label, so this is backported to the branch. Mostly for consistency and history.

@Mamaduka Mamaduka added the Backport to Gutenberg Minor Release Pull request that needs to be backported to a Gutenberg minor release label Nov 2, 2026
@github-actions github-actions Bot removed the Backport to WP 7.2 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Nov 2, 2026
gutenbergplugin pushed a commit that referenced this pull request Nov 2, 2026
Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>
Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
@github-actions github-actions Bot added the Backported to WP Core Pull request that has been successfully merged into WP Core label Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

I just cherry-picked this PR to the wp/7.2 branch to get it included in the next release: 72b2aa2

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

There was a conflict while trying to cherry-pick the commit to the wp/7.2 branch. Please resolve the conflict manually and create a PR to the wp/7.2 branch.

PRs to wp/7.2 are similar to PRs to trunk, but you should base your PR on the wp/7.2 branch instead of trunk.

# Checkout the wp/7.2 branch instead of trunk.
git checkout wp/7.2

# Create a new branch for your PR.
git checkout -b my-branch

# Cherry-pick the commit.
git cherry-pick 35054c4494d1b21c102d0a5b5b6f1b31b07daea7

# Check which files have conflicts.
git status

# Resolve the conflict...
# Add the resolved files to the staging area.
git status
git add .
git cherry-pick --continue

# Push the branch to the repository
git push origin my-branch

# Create a PR and set the base to the wp/7.2 branch.
# See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request.

@adamsilverstein

adamsilverstein commented Nov 2, 2026 •

Copy link
Copy Markdown
Member Author

Thanks @Mamaduka I see the cherry pick failed, I'll work on a cherry-pick PR

@adamsilverstein

Copy link
Copy Markdown
Member Author

Oh, looks like the first cherry-pick (72b2aa2) went through and the conflict came from the second, empty run.

jsnajdr pushed a commit that referenced this pull request Nov 3, 2026
Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>
Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
@jsnajdr

jsnajdr commented Nov 3, 2026

Copy link
Copy Markdown
Member

I just cherry-picked this PR to the release/24.3 branch to get it included in the next release: 4f37904

@jsnajdr jsnajdr removed the Backport to Gutenberg Minor Release Pull request that needs to be backported to a Gutenberg minor release label Nov 3, 2026
wporg-sync pushed a commit to WordPress/wordpress-develop that referenced this pull request Nov 3, 2026
This updates the pinned commit hash of the Gutenberg repository from `cc75a79186fd23e72eb015d594e82f40c6209eb5` to `c035c1a649ef68f5c1646694cf440df1d7ae6e62` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@cc75a79...c035c1a

- Components: Use solid brand highlights for popup items (WordPress/gutenberg#84583) (#85848)
- Fix endless sideload loop when the browser can't decode a big image (WordPress/gutenberg#83530)
- Notes: Show reaction picker as a row of emoji (WordPress/gutenberg#85819) (#85892)
- Notes: Add thumbs up and plus reactions (WordPress/gutenberg#85565)
- Notes: Share thread focus recovery across actions (WordPress/gutenberg#85455)
- Core Fields: Prevent extra space between `/` and text in slug input (WordPress/gutenberg#85935)
- Notes: Add search and a status filter to the All Notes sidebar (WordPress/gutenberg#84060)
- Notes: Use the note permission check when deleting a reaction (WordPress/gutenberg#85883)
- [WP 7.2] Math block: Keyboard focus is trapped in the LaTeX field when the formula has an error (WordPress/gutenberg#86032)
- Core fields: Keep the status icon full size when its label wraps (WordPress/gutenberg#85828) (#86050)
- [WP 7.2] ToolsPanel: Keep the "Reset" label visible on the highlighted menu item (WordPress/gutenberg#86060)
- Interactivity Router: Ignore router regions and attachTo targets inside data-wp-html content (WordPress/gutenberg#84919) (#86059)
- [WP 7.2] wp-build: Derive CSS module class names from each stylesheet's CSS (WordPress/gutenberg#86062)
- Playlist: Allow track without an attachment ID to render on the frontend (WordPress/gutenberg#83880) (#86158)
- UI: Show only the day number in Calendar day cells (WordPress/gutenberg#86010) (#86183)
- Notes: Tolerate a null comment in the reaction cascade hooks (WordPress/gutenberg#85959)
- Rich Text: Remove stale format boundary when field loses selection (WordPress/gutenberg#86168)
- Notes: Only let a reaction's author delete it (WordPress/gutenberg#85415)
- Writing flow: Fix Arrow Up and Down getting stuck at the edge of the screen (WordPress/gutenberg#85408)
- Try: Run e2e tests in parallel, on one wp-env site per two cores (WordPress/gutenberg#85420)
- Raw handling: Keep shortcodes in text inline (WordPress/gutenberg#85795)
- Fix: Fixes non-breaking space replacement tooltip (WordPress/gutenberg#85777)
- Non-breaking space: Remove non-breaking spaces that would collapse when replaced (WordPress/gutenberg#85873)

Props mamaduka.
See #66340.

git-svn-id: https://develop.svn.wordpress.org/trunk@65225 602fd350-edb4-49c9-b593-d223f7449a82
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Nov 3, 2026
This updates the pinned commit hash of the Gutenberg repository from `cc75a79186fd23e72eb015d594e82f40c6209eb5` to `c035c1a649ef68f5c1646694cf440df1d7ae6e62` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@cc75a79...c035c1a

- Components: Use solid brand highlights for popup items (WordPress/gutenberg#84583) (#85848)
- Fix endless sideload loop when the browser can't decode a big image (WordPress/gutenberg#83530)
- Notes: Show reaction picker as a row of emoji (WordPress/gutenberg#85819) (#85892)
- Notes: Add thumbs up and plus reactions (WordPress/gutenberg#85565)
- Notes: Share thread focus recovery across actions (WordPress/gutenberg#85455)
- Core Fields: Prevent extra space between `/` and text in slug input (WordPress/gutenberg#85935)
- Notes: Add search and a status filter to the All Notes sidebar (WordPress/gutenberg#84060)
- Notes: Use the note permission check when deleting a reaction (WordPress/gutenberg#85883)
- [WP 7.2] Math block: Keyboard focus is trapped in the LaTeX field when the formula has an error (WordPress/gutenberg#86032)
- Core fields: Keep the status icon full size when its label wraps (WordPress/gutenberg#85828) (#86050)
- [WP 7.2] ToolsPanel: Keep the "Reset" label visible on the highlighted menu item (WordPress/gutenberg#86060)
- Interactivity Router: Ignore router regions and attachTo targets inside data-wp-html content (WordPress/gutenberg#84919) (#86059)
- [WP 7.2] wp-build: Derive CSS module class names from each stylesheet's CSS (WordPress/gutenberg#86062)
- Playlist: Allow track without an attachment ID to render on the frontend (WordPress/gutenberg#83880) (#86158)
- UI: Show only the day number in Calendar day cells (WordPress/gutenberg#86010) (#86183)
- Notes: Tolerate a null comment in the reaction cascade hooks (WordPress/gutenberg#85959)
- Rich Text: Remove stale format boundary when field loses selection (WordPress/gutenberg#86168)
- Notes: Only let a reaction's author delete it (WordPress/gutenberg#85415)
- Writing flow: Fix Arrow Up and Down getting stuck at the edge of the screen (WordPress/gutenberg#85408)
- Try: Run e2e tests in parallel, on one wp-env site per two cores (WordPress/gutenberg#85420)
- Raw handling: Keep shortcodes in text inline (WordPress/gutenberg#85795)
- Fix: Fixes non-breaking space replacement tooltip (WordPress/gutenberg#85777)
- Non-breaking space: Remove non-breaking spaces that would collapse when replaced (WordPress/gutenberg#85873)

Props mamaduka.
See #66340.
Built from https://develop.svn.wordpress.org/trunk@65225


git-svn-id: http://core.svn.wordpress.org/trunk@64374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
@jsnajdr jsnajdr modified the milestones: Gutenberg 24.4, Gutenberg 24.3 Nov 3, 2026
arshidkv12 pushed a commit to arshidkv12/wordpress-develop that referenced this pull request Nov 21, 2026
This updates the pinned commit hash of the Gutenberg repository from `cc75a79186fd23e72eb015d594e82f40c6209eb5` to `c035c1a649ef68f5c1646694cf440df1d7ae6e62` (fixes cherry-picked to the `wp/7.2` branch).

A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@cc75a79...c035c1a

- Components: Use solid brand highlights for popup items (WordPress/gutenberg#84583) (#85848)
- Fix endless sideload loop when the browser can't decode a big image (WordPress/gutenberg#83530)
- Notes: Show reaction picker as a row of emoji (WordPress/gutenberg#85819) (#85892)
- Notes: Add thumbs up and plus reactions (WordPress/gutenberg#85565)
- Notes: Share thread focus recovery across actions (WordPress/gutenberg#85455)
- Core Fields: Prevent extra space between `/` and text in slug input (WordPress/gutenberg#85935)
- Notes: Add search and a status filter to the All Notes sidebar (WordPress/gutenberg#84060)
- Notes: Use the note permission check when deleting a reaction (WordPress/gutenberg#85883)
- [WP 7.2] Math block: Keyboard focus is trapped in the LaTeX field when the formula has an error (WordPress/gutenberg#86032)
- Core fields: Keep the status icon full size when its label wraps (WordPress/gutenberg#85828) (#86050)
- [WP 7.2] ToolsPanel: Keep the "Reset" label visible on the highlighted menu item (WordPress/gutenberg#86060)
- Interactivity Router: Ignore router regions and attachTo targets inside data-wp-html content (WordPress/gutenberg#84919) (#86059)
- [WP 7.2] wp-build: Derive CSS module class names from each stylesheet's CSS (WordPress/gutenberg#86062)
- Playlist: Allow track without an attachment ID to render on the frontend (WordPress/gutenberg#83880) (#86158)
- UI: Show only the day number in Calendar day cells (WordPress/gutenberg#86010) (#86183)
- Notes: Tolerate a null comment in the reaction cascade hooks (WordPress/gutenberg#85959)
- Rich Text: Remove stale format boundary when field loses selection (WordPress/gutenberg#86168)
- Notes: Only let a reaction's author delete it (WordPress/gutenberg#85415)
- Writing flow: Fix Arrow Up and Down getting stuck at the edge of the screen (WordPress/gutenberg#85408)
- Try: Run e2e tests in parallel, on one wp-env site per two cores (WordPress/gutenberg#85420)
- Raw handling: Keep shortcodes in text inline (WordPress/gutenberg#85795)
- Fix: Fixes non-breaking space replacement tooltip (WordPress/gutenberg#85777)
- Non-breaking space: Remove non-breaking spaces that would collapse when replaced (WordPress/gutenberg#85873)

Props mamaduka.
See #66340.

git-svn-id: https://develop.svn.wordpress.org/trunk@65225 602fd350-edb4-49c9-b593-d223f7449a82
Vedant-Gandhi pushed a commit to Vedant-Gandhi/gutenberg that referenced this pull request Nov 30, 2026
…ss#85959)

Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>
Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backported to WP Core Pull request that has been successfully merged into WP Core [Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notes: reaction cleanup fatals when a plugin fires delete_comment without a WP_Comment

5 participants