Make WordPress Core

Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#56665 closed defect (bug) (fixed)

Persisted preferences: User meta context property incorrectly configured

Reported by: talldanwp's profile talldanwp Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.1 Priority: normal
Severity: normal Version: 6.1
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

Originally mentioned to me by @dd32.

The user meta 'context' property for persisted preference is incorrectly configured. It should be part of the 'schema' array, but is incorrectly part of the 'show_in_rest' array:
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/user.php#L4986-L5010

Change History (3)

This ticket was mentioned in PR #3338 on WordPress/wordpress-develop by talldan.


22 months ago
#1

The user meta 'context' property for persisted preference is incorrectly configured. It should be part of the 'schema' array, but is incorrectly part of the 'show_in_rest' array:
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/user.php#L4986-L5010

Trac ticket: https://core.trac.wordpress.org/ticket/56665

#2 @SergeyBiryukov
22 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 54329:

Users: Correctly pass the context property for persisted preferences.

The user meta context property in wp_register_persisted_preferences_meta() was incorrectly configured. It should be part of the schema array, not the show_in_rest array.

Follow-up to [54182].

Props talldanwp, dd32.
Fixes #56665. See #56467.

SergeyBiryukov commented on PR #3338:


22 months ago
#3

Thanks for the PR! Merged in r54329.

Note: See TracTickets for help on using tickets.