[wp-trac] [WordPress Trac] #55600: Can't save registered post meta field of type string that equals registered default value via REST API

WordPress Trac noreply at wordpress.org
Tue Jun 11 20:45:13 UTC 2024


#55600: Can't save registered post meta field of type string that equals registered
default value via REST API
--------------------------------------+------------------------------
 Reporter:  kraftner                  |       Owner:  (none)
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Options, Meta APIs        |     Version:
 Severity:  normal                    |  Resolution:  invalid
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+------------------------------
Changes (by kraftner):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 @ramon-fincken Thanks for having a look and sorry if my instructions for
 reproduction weren't clear. What was missing to reproduce this was trying
 to save the defaults via the REST API: https://developer.wordpress.org
 /rest-api/reference/posts/#schema-meta

 I just took the time to create a PR including a test. I am still not 100%
 sure this fully covers the whole issue but maybe you can test the PR and
 it is more clear now what the issue is.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55600#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list