[wp-trac] [WordPress Trac] #50030: Post Attributes default template's value is empty

WordPress Trac noreply at wordpress.org
Thu Nov 26 04:44:32 UTC 2020


#50030: Post Attributes default template's value is empty
-----------------------------------------+---------------------
 Reporter:  sandesh055                   |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  5.7
Component:  Editor                       |     Version:  5.5
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+---------------------
Changes (by noisysocks):

 * keywords:  has-patch needs-testing => has-patch reporter-feedback


Comment:

 I tested [https://github.com/WordPress/wordpress-develop/pull/312 PR #312]
 locally and noticed that it introduces a "Updating failed. Invalid
 parameter(s): template" error when you change the template to ''Default
 template'' and save the post.

 This is because the posts REST endpoint requires `template` to be `''` or
 a valid template file. It does not allow `'default'`.

 @sandesh055: Does having the `option`'s `value` set to `""` cause a user-
 facing bug somewhere?

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


More information about the wp-trac mailing list