Make WordPress Core


Ignore:
Timestamp:
10/30/2025 11:54:22 AM (3 months ago)
Author:
wildworks
Message:

Editor: Add auth_callback to _wp_note_status comment meta.

Adds an auth_callback to the _wp_note_status comment meta so that only users with the edit_comment capability can update this meta field via the REST API.

This is necessary to ensure that users can properly resolve or reopen Notes.

Props wildworks, adamsilverstein, westonruter, mamaduka, desrosj.
Fixes #64153.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r61088 r61089  
    152152add_action( 'updated_comment_meta', 'wp_cache_set_comments_last_changed' );
    153153add_action( 'deleted_comment_meta', 'wp_cache_set_comments_last_changed' );
     154add_action( 'init', 'wp_create_initial_comment_meta' );
    154155
    155156// Places to balance tags on input.
Note: See TracChangeset for help on using the changeset viewer.