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

WordPress Trac noreply at wordpress.org
Thu Nov 26 07:29:54 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:
-----------------------------------------+---------------------

Comment (by sandesh055):

 Ohh, Users are not facing a bug directly but conditions based on the
 "default" key causing an issue sometimes.

 As a developer needs to keep both the condition old one and new i.e.
 compare with 'default' and 'empty' to maintain compatibility.


 Replying to [comment:7 noisysocks]:
 > 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:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list